truffle-box / react-box

Truffle, Webpack and React boilerplate.
https://truffle-box.github.io/
MIT License
736 stars 251 forks source link

Updated to jest version compatible with testMatch #19

Closed clexmond closed 5 years ago

clexmond commented 7 years ago

testMatch is incompatible with jest 18.1.0 and was causing errors thrown when running npm test:

Error: Unknown config option "testMatch" with value "<rootDir>/src/**/__tests__/**/*.js?(x),<rootDir>/src/**/?(*.)(spec|test).js?(x)". This is either a typing error or a user mistake and fixing it will remove this message.

This updates to use 19.0.1 per https://facebook.github.io/jest/docs/configuration.html#testmatch-array-string

Breaking changes between 18.1.0 and 19.0.1 don't affect current tests.

palafoxernesto commented 6 years ago

This pull request fix npm run test error:

PASS src/App.test.js FAIL scripts/test.js ● Test suite failed to run

SyntaxError: Identifier 'jest' has already been declared

  at Runtime._execModule (node_modules/jest-runtime/build/index.js:442:13)
      at <anonymous>
stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if no there is no reply to further comments.