chore(pgk): add update-snapshot script for all tests
This commit is contained in:
parent
aab3554cad
commit
6c8fc73f2f
|
@ -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
|
||||
|
|
|
@ -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\"",
|
||||
|
|
Loading…
Reference in New Issue