Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Updated to jest version compatible with testMatch #19

Closed
wants to merge 1 commit into from
Closed

Updated to jest version compatible with testMatch #19

wants to merge 1 commit into from

Conversation

clexmond
Copy link

@clexmond clexmond commented Aug 2, 2017

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
Copy link

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
Copy link

stale bot commented Dec 21, 2018

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 stale bot added the wontfix label Dec 21, 2018
@stale
Copy link

stale bot commented Dec 28, 2018

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.

@stale stale bot closed this Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants