Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Bump react-scripts to 1.0.7 #28

Merged
merged 3 commits into from
May 29, 2017
Merged

Conversation

thymikee
Copy link
Contributor

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 in package.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), hence rootDir 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).

Copy link
Owner

@kentcdodds kentcdodds left a 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(
Copy link
Owner

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 :)

Copy link
Contributor Author

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",
Copy link
Owner

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"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@kentcdodds
Copy link
Owner

Since I've just started using it myself to teach about testing for my fellow coworkers

awesome!

Thanks so much for contributing back :)

@kentcdodds kentcdodds merged commit 3dde0aa into kentcdodds:master May 29, 2017
@kentcdodds
Copy link
Owner

Thanks for the help! I'm not sure what's up with the build so we can figure that out later

@thymikee thymikee deleted the bump-deps branch May 29, 2017 20:11
@thymikee
Copy link
Contributor Author

thymikee commented May 29, 2017

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 cypress-io/cypress#369).
So what's with your build? I works for me

@kentcdodds
Copy link
Owner

I'm basing this on this build. Something about jest: not found 🤔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants