dillon1000/react
Commit
Browse files Add error when running jest directly (#12726)
```
$ jest
FAIL scripts/jest/dont-run-jest-directly.js
● Test suite failed to run
Don't run `jest` directly. Run `yarn test` instead.
> 1 | throw new Error("Don't run `jest` directly. Run `yarn test` instead.");
2 |
at Object.<anonymous> (scripts/jest/dont-run-jest-directly.js:1:96)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.866s
Ran all test suites.
```Changed paths2 files
First-parent comparisonpackage.json ModifiedA scripts/jest/dont-run-jest-directly.js AddedPatch
Files changed
Rendering syntax-highlighted changes…