[add] jest snapshot serializer

Flatten style objects in snapshots
This commit is contained in:
Nicolas Gallagher
2017-10-17 16:18:07 -07:00
parent 5395a3e8bc
commit 3870445b7e
6 changed files with 473 additions and 7 deletions
+4 -3
View File
@@ -18,15 +18,16 @@
"docs:start": "cd docs && yarn && yarn start",
"docs:release": "cd docs && yarn release",
"flow": "flow",
"fmt": "find babel benchmarks docs src -name '*.js' | grep -v -E '(node_modules|dist)' | xargs yarn fmt:cmd",
"fmt": "find babel benchmarks docs jest src -name '*.js' | grep -v -E '(node_modules|dist)' | xargs yarn fmt:cmd",
"fmt:cmd": "prettier --print-width=100 --single-quote --write",
"jest": "jest",
"jest:watch": "yarn test -- --watch",
"lint": "yarn lint:cmd -- babel benchmarks docs src",
"lint": "yarn lint:cmd -- babel benchmarks docs jest src",
"lint:cmd": "eslint --ignore-path .gitignore --fix",
"precommit": "lint-staged",
"release": "yarn clean-dist && yarn lint && yarn test && yarn build && npm publish",
"test": "flow && jest"
"test": "flow && jest",
"test:ci": "yarn clean-dist && yarn compile && yarn test"
},
"babel": {
"presets": [