-
Notifications
You must be signed in to change notification settings - Fork 709
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I'm unsure why the build is busted though. Do you have any thoughts?
}, | ||
watch: { | ||
description: 'run the integration tests in watch mode', | ||
script: testEnv( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the testEnv
function declaration at the bottom of this file because it's no longer in use :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, removed!
"jest-test-typescript-parser": "^19.0.2", | ||
"jest-util": "^19.0.2", | ||
"jest-validate": "^19.0.2", | ||
"jest-glamor-react": "^1.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woo!
"nps": "^5.0.5", | ||
"nps-utils": "^1.2.0", | ||
"polished": "^1.0.3", | ||
"pretty-format": "^19.0.0", | ||
"pushstate-server": "^3.0.0", | ||
"react-addons-test-utils": "15.4.2", | ||
"react-scripts": "^0.9.4" | ||
"react-scripts": "1.0.7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
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 |
EDIT: Discard cypress, it was just old version I had (basically this cypress-io/cypress#369). |
I'm basing this on this build. Something about |
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).