Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(pgk): add update-snapshot script for all tests #7604

Merged
merged 2 commits into from Jun 28, 2018

Conversation

TheLarkInn
Copy link
Member

This PR adds a very simple update-snapshot script. This enables a contributor to run:

yarn test:update-snapshots

I also updated the SETUP.md guide to reflect this change.

What kind of change does this PR introduce?
Build related change

Did you add tests for your changes?
N/A

Does this PR introduce a breaking change?
N/A

What needs to be documented once your changes are merged?
N/A

@webpack-bot
Copy link
Contributor

webpack-bot commented Jun 26, 2018

For maintainers only:

  • This need to be documented (issue in webpack/webpack.js.org will be filed when merged)

@webpack-bot
Copy link
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

Copy link
Member

@ooflorent ooflorent left a comment

Choose a reason for hiding this comment

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

Looks good.

package.json Outdated
@@ -104,6 +104,7 @@
"scripts": {
"setup": "node ./setup/setup.js",
"test": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest",
"test:update-snapshots": "yarn test -u",
Copy link
Member

Choose a reason for hiding this comment

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

Could you change this to yarn jest -u? yarn test also runs the linting and this is not needed here.

@TheLarkInn
Copy link
Member Author

I'll merge once final check runs.

@sokra sokra merged commit f41b829 into master Jun 28, 2018
@sokra
Copy link
Member

sokra commented Jun 28, 2018

Thanks

@sokra sokra deleted the feature/update-snapshot-script branch June 28, 2018 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants