Closed thymikee closed 7 years ago
Since I've just started using it myself to teach about testing for my fellow coworkers
awesome!
Thanks so much for contributing back :)
Thanks for the help! I'm not sure what's up with the build so we can figure that out later
~You mean the cypress erroring? I got this before landing this PR too (just tested once more to be sure).~
EDIT: Discard cypress, it was just old version I had (basically this https://github.com/cypress-io/cypress/issues/369). So what's with your build? I works for me
I'm basing this on this build. Something about jest: not found
🤔
Hey @kentcdodds, this is a fantastic resource for organising a testing workshop, thank you!
Since I've just started using it myself to teach about testing for my fellow coworkers, I thought it would be nice to give something back.
This PR bumps
react-scripts
to the latest, which comes with Jest@20 included, so no more weird hacks needed inpackage.json
😉.Because of a bug in config resolving algo in Jest, nested configs need to point to your actual root directory (basically where
process.cwd()
points), hencerootDir
explicitly added to these configuration files.I've also removed
testEnv()
from jest commands, since Jest is supposed to do it for you. If this doesn't work on Windows for some reasons I can revert it (and file an issue in Jest repo).