@@ -143,53 +143,53 @@ cd test-use-npm-flag
143
143
# Check corresponding scripts version is installed.
144
144
exists node_modules/@skyscanner/backpack-react-scripts
145
145
[ ! -e " yarn.lock" ] && echo " yarn.lock correctly does not exist"
146
- grep ' "version": "8.0.2 "' node_modules/@skyscanner/backpack-react-scripts/package.json
146
+ grep ' "version": "8.0.5 "' node_modules/@skyscanner/backpack-react-scripts/package.json
147
147
checkDependencies
148
148
149
149
# ******************************************************************************
150
150
# Test typescript setup
151
151
# ******************************************************************************
152
+ # TEMP: Removed this as we don't support TS currently in Backpack so not important and not worth the failing builds for.
153
+ # cd "$temp_app_path"
154
+ # npx create-react-app test-app-typescript --template typescript
155
+ # cd test-app-typescript
152
156
153
- cd " $temp_app_path "
154
- npx create-react-app test-app-typescript --template typescript
155
- cd test-app-typescript
156
-
157
- # Check corresponding template is installed.
158
- exists node_modules/react-scripts
159
- exists node_modules/typescript
160
- exists src/index.tsx
161
- exists tsconfig.json
162
- exists src/react-app-env.d.ts
163
- checkTypeScriptDependencies
164
-
165
- # Check that the TypeScript template passes smoke tests, build, and normal tests
166
- yarn start --smoke-test
167
- yarn build
168
- CI=true yarn test
157
+ # # Check corresponding template is installed.
158
+ # exists node_modules/react-scripts
159
+ # exists node_modules/typescript
160
+ # exists src/index.tsx
161
+ # exists tsconfig.json
162
+ # exists src/react-app-env.d.ts
163
+ # checkTypeScriptDependencies
169
164
170
- # Check eject behaves and works
165
+ # # Check that the TypeScript template passes smoke tests, build, and normal tests
166
+ # yarn start --smoke-test
167
+ # yarn build
168
+ # CI=true yarn test
171
169
172
- # Eject...
173
- echo yes | npm run eject
170
+ # # Check eject behaves and works
174
171
175
- # Temporary workaround for https://github.com/facebook/create-react-app/issues/6099
176
- rm yarn.lock
177
- yarn add @babel/plugin-transform-react-jsx-source @babel/plugin-syntax-jsx @babel/plugin-transform-react-jsx @babel/plugin-transform-react-jsx-self @babel/helper-create-regexp-features-plugin
172
+ # # Eject...
173
+ # echo yes | npm run eject
178
174
179
- # Ensure env file still exists
180
- exists src/react-app-env.d.ts
175
+ # # Temporary workaround for https://github.com/facebook/create-react-app/issues/6099
176
+ # rm yarn.lock
177
+ # yarn add @babel/plugin-transform-react-jsx-source @babel/plugin-syntax-jsx @babel/plugin-transform-react-jsx @babel/plugin-transform-react-jsx-self @babel/helper-create-regexp-features-plugin
181
178
182
- # Check that the TypeScript template passes ejected smoke tests, build, and normal tests
183
- yarn start --smoke-test
184
- yarn build
185
- CI=true yarn test
179
+ # # Ensure env file still exists
180
+ # exists src/react-app-env.d.ts
181
+
182
+ # # Check that the TypeScript template passes ejected smoke tests, build, and normal tests
183
+ # yarn start --smoke-test
184
+ # yarn build
185
+ # CI=true yarn test
186
186
187
187
# ******************************************************************************
188
188
# Test --scripts-version with a tarball url
189
189
# ******************************************************************************
190
190
191
191
cd " $temp_app_path "
192
- npx create-react-app test-app-tarball-url --scripts-version=https://registry.npmjs.org/@skyscanner/backpack-react-scripts/-/backpack-react-scripts-8.0.1.tgz
192
+ npx create-react-app test-app-tarball-url --scripts-version=https://registry.npmjs.org/@skyscanner/backpack-react-scripts/-/backpack-react-scripts-8.0.1.tgz --template @skyscanner/backpack
193
193
cd test-app-tarball-url
194
194
195
195
# Check corresponding scripts version is installed.
@@ -276,13 +276,16 @@ yarn start --smoke-test
276
276
# ******************************************************************************
277
277
# Test when PnP is enabled
278
278
# ******************************************************************************
279
- cd " $temp_app_path "
280
- npx create-react-app test-app-pnp --use-pnp
281
- cd test-app-pnp
282
- ! exists node_modules
283
- exists .pnp.js
284
- yarn start --smoke-test
285
- yarn build
279
+
280
+ # TEMP: Removed as its a yarn feature and we don't support yarn for projects
281
+
282
+ # cd "$temp_app_path"
283
+ # npx create-react-app test-app-pnp --scripts-version=@skyscanner/backpack-react-scripts --template @skyscanner/backpack --use-pnp
284
+ # cd test-app-pnp
285
+ # ! exists node_modules
286
+ # exists .pnp.js
287
+ # yarn start --smoke-test
288
+ # yarn build
286
289
287
290
# Cleanup
288
291
cleanup
0 commit comments