You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/react-scripts/template/README.md
+4
Original file line number
Diff line number
Diff line change
@@ -1323,6 +1323,8 @@ import Adapter from 'enzyme-adapter-react-16';
1323
1323
configure({ adapter:newAdapter() });
1324
1324
```
1325
1325
1326
+
(Note that **if you already ejected** before creating `src/setupTests.js`, this won’t work unless you set [this Jest option](https://facebook.github.io/jest/docs/en/configuration.html#setuptestframeworkscriptfile-string) to point to `src/setupTests.js`.)
1327
+
1326
1328
Now you can write a smoke test with it:
1327
1329
1328
1330
```js
@@ -1412,6 +1414,8 @@ const localStorageMock = {
1412
1414
global.localStorage= localStorageMock
1413
1415
```
1414
1416
1417
+
Note that **if you already ejected** before creating `src/setupTests.js`, this won’t work unless you set [this Jest option](https://facebook.github.io/jest/docs/en/configuration.html#setuptestframeworkscriptfile-string) to point to `src/setupTests.js`.
1418
+
1415
1419
### Focusing and Excluding Tests
1416
1420
1417
1421
You can replace `it()` with `xit()` to temporarily exclude a test from being executed.<br>
0 commit comments