I’m testing my React application made with Create React App. My test command (
npm test) executes
No matter the result of my tests the step will succeed and never fail no matter if one or all of the tests fails.
Build errors are reported correctly and will fail the build if they happens but exit codes from react-scripts seems to be catched somehow.
Excuting the react-scripts command directly (
node_modules/react-scripts/bin/react-scripts.js test --env=jsdom) doesn’t change anything.
As attempt in debugging 'I’ve tried to
npm test && echo $? to see the exit code and it is always 0.
I can not reproduce this locally so I wonder if Circle is wrapping the build step somehow and that way captures the exitcode from