Skip to content

Commit 1ea05fd

Browse files
committed
Add snapshot testing
1 parent 8335317 commit 1ea05fd

File tree

3 files changed

+8000
-1
lines changed

3 files changed

+8000
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
"dev": "./node_modules/.bin/webpack-dev-server --config example/webpack.config.js --devtool eval --progress --colors --hot --content-base example",
2323
"lint": "./node_modules/.bin/eslint src/ DateTime.js test/",
2424
"test": "./node_modules/.bin/jest",
25-
"test:all": "npm run test:typings && npm run test",
2625
"test:typings": "./node_modules/.bin/tsc -p ./typings",
26+
"test:snapshot": "./node_modules/.bin/jest snapshot",
27+
"test:snapshot:update": "./node_modules/.bin/jest snapshot --updateSnapshot",
28+
"test:all": "npm run test:typings && npm run test",
2729
"test:watch": "./node_modules/.bin/jest --watch"
2830
},
2931
"keywords": [

0 commit comments

Comments
 (0)