Skip to content

Commit

Permalink
Merge pull request #7604 from webpack/feature/update-snapshot-script
Browse files Browse the repository at this point in the history
chore(pgk): add update-snapshot script for all tests
  • Loading branch information
sokra committed Jun 28, 2018
2 parents 486e760 + 17fa26c commit f41b829
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _SETUP.md
Expand Up @@ -51,6 +51,12 @@ or in watch mode
yarn test:unit --watch
```

### To update Jest snapshots use

```bash
yarn test:update-snapshots
```

### To run code formatter (prettier) run

```bash
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -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 jest -u",
"test:integration": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\"",
"test:basic": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/{TestCasesNormal,StatsTestCases,ConfigTestCases}.test.js\"",
"test:unit": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
Expand Down

0 comments on commit f41b829

Please sign in to comment.