dillon1000/react

Commit

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.
```
Browse files
Changed paths2 files
First-parent comparison
M package.json ModifiedA scripts/jest/dont-run-jest-directly.js Added
Patch

Files changed

Rendering syntax-highlighted changes…