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

This commit is contained in:
Sean Larkin 2018-06-26 10:57:17 -07:00
parent aab3554cad
commit 6c8fc73f2f
No known key found for this signature in database
GPG Key ID: B24730E407776925
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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",
"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\"",