react/scripts/jest
Sophie Alpert 200357596a
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.
```
2018-05-01 12:46:17 -07:00
..
matchers Workaround jest-diff single line string limitation (#12456) 2018-03-26 10:48:36 -07:00
spec-equivalence-reporter toWarnInDev matcher; throw on unexpected console.error (#11786) 2018-01-02 11:06:41 -08:00
typescript toWarnInDev matcher; throw on unexpected console.error (#11786) 2018-01-02 11:06:41 -08:00
config.build.js Bump Prettier (#12622) 2018-04-17 01:43:55 +01:00
config.source.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
dont-run-jest-directly.js Add error when running jest directly (#12726) 2018-05-01 12:46:17 -07:00
noHaste.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
preprocessor.js Add a build step to hoist warning conditions (#12537) 2018-04-04 17:04:40 +01:00
setupEnvironment.js Plug ~100 test leaks (#12020) 2018-01-15 11:15:19 +00:00
setupTests.js Bump Prettier (#12622) 2018-04-17 01:43:55 +01:00