Closed
Description
I have run into an issue where npm test
which works perfectly with current stable CRA doesn't work with CRA3 if the testing instructions in the docs are followed.
I have created a repro showcasing this deterministically, just run npm test
in it.
The steps to reproduce are:
npm create-react-app . --typescript
npm install --save enzyme enzyme-adapter-react-16 react-test-renderer
npm install --save-dev @types/enzyme @types/enzyme-adapter-react-16
setupTests.ts
as per https://facebook.github.io/create-react-app/docs/running-tests#src-setuptestsjsnpm test
still works!npm install [email protected]
Roadmap for version 3.0 #6475npm test
now says it cannot find any files!App.test.tsx
sits right there.
Now sure if this is caused by TypeScript or not, I have not tried to see if this reproduces with the JavaScript version of CRA3.
Metadata
Metadata
Assignees
Labels
No labels