Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

jest is ignoring JS and JSX files. #230

Closed
kresli opened this issue Jan 18, 2018 · 1 comment
Closed

jest is ignoring JS and JSX files. #230

kresli opened this issue Jan 18, 2018 · 1 comment

Comments

@kresli
Copy link

kresli commented Jan 18, 2018

This is more a question then a bug report.
Any ".js" or ".jsx" are ignored by tests, however those are acceptable on dev or prod environment. Is this by design or it is a bug?
createJestConfig.js

example: rename App.test.tsx to App.test.jsx
compile error:

No tests found
In /Documents/create-react-app-typescript
  12 files checked.
  testMatch: /Documents/create-react-app-typescript/src/**/__tests__/**/*.ts?(x),/Documents/create-react-app-typescript/src/**/?(*.)(spec|test).ts?(x) - 0 matches
  testPathIgnorePatterns: /node_modules/ - 12 matches
Pattern: "" - 0 matches

Thanks

@bootstraponline
Copy link

It seems like we should support both.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants