You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I have run into an issue where
npm testwhich 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 testin it.The steps to reproduce are:
npm create-react-app . --typescriptnpm install --save enzyme enzyme-adapter-react-16 react-test-renderernpm install --save-dev @types/enzyme @types/enzyme-adapter-react-16setupTests.tsas per https://facebook.github.io/create-react-app/docs/running-tests#src-setuptestsjsnpm teststill works!npm install react-scripts@3.0.0-next.b0cbf2caRoadmap for version 3.0 #6475npm testnow says it cannot find any files!App.test.tsxsits 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.