Skip to content

Commit

Permalink
chore: add note about how to handle scripts/test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh95 committed May 16, 2022
1 parent 310e35e commit 19290d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/create-react-app/scripts/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO: Can we have a script then it would copy `react-scripts/scripts/test.js` => `scripts/test.js` then remove @remove-on-eject-begin
// Refer to how CRA ejects
// We can provide a script like `jest-preview create-cra-test` (TODO: Come up with a better name)
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'test';
process.env.NODE_ENV = 'test';
Expand Down

0 comments on commit 19290d1

Please sign in to comment.