Skip to content

Commit

Permalink
[test] Fixed object serializer (Tradeshift#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Spitzer authored Sep 1, 2017
1 parent 1ec1eec commit 332a142
Show file tree
Hide file tree
Showing 8 changed files with 1,230 additions and 1,160 deletions.
24 changes: 16 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
"build": "run-s -n build-css build-js",
"build-js": "cross-env NODE_PATH=src/ node $NODE_DEBUG_OPTION ./scripts/bin/build",
"test": "run-s -n build-css test-js",
"test-js": "cross-env NODE_PATH=src/ node $NODE_DEBUG_OPTION ./scripts/bin/test --env=jsdom --colors",
"test-js":
"cross-env NODE_PATH=src/ node $NODE_DEBUG_OPTION ./scripts/bin/test --env=jsdom --colors",
"test-debug": "run-s -n build-css test-debug-js",
"test-debug-js": "cross-env NODE_PATH=src/ node $NODE_DEBUG_OPTION ./scripts/bin/test --env=jsdom --runInBand --colors",
"test-debug-js":
"cross-env NODE_PATH=src/ node $NODE_DEBUG_OPTION ./scripts/bin/test --env=jsdom --runInBand --colors",
"test-coverage": "run-s -n build-css test-js-coverage",
"test-js-coverage": "cross-env NODE_PATH=src/ node $NODE_DEBUG_OPTION ./scripts/bin/test --env=jsdom --coverage --colors",
"test-js-coverage":
"cross-env NODE_PATH=src/ node $NODE_DEBUG_OPTION ./scripts/bin/test --env=jsdom --coverage --colors",
"build-css": "node-less-chokidar src",
"watch-css": "node-less-chokidar src --watch",
"analyze": "run-s build analyze-js",
Expand All @@ -22,9 +25,12 @@
"prelint": "npm run eslint",
"lint": "run-p -n prettier prettier-less prettier-json",
"eslint": "eslint --fix --config ./eslintrc.json --color ./src ./scripts",
"prettier": "prettier --write --use-tabs --single-quote --print-width 100 \"{src,scripts,public}/**/*.js\"",
"prettier-less": "prettier --write --use-tabs --single-quote --print-width 100 --parser postcss \"src/**/*.less\"",
"prettier-json": "prettier --write --use-tabs --single-quote --print-width 100 --parser json \"{src/**/,}*.json\"",
"prettier":
"prettier --write --use-tabs --single-quote --print-width 100 \"{src,scripts,public}/**/*.js\"",
"prettier-less":
"prettier --write --use-tabs --single-quote --print-width 100 --parser postcss \"src/**/*.less\"",
"prettier-json":
"prettier --write --use-tabs --single-quote --print-width 100 --parser json \"{src/**/,}*.json\"",
"precommit": "lint-staged",
"DEPLOYMENT-SCRIPTS": "",
"predeploy": "npm run test && npm run patch",
Expand All @@ -48,7 +54,8 @@
"major": "npm version major -f -m '[bump] v%s'",
"UTIL SCRIPTS": "",
"cleanup": "rm `find ./ -name '.DS_Store'` -rf",
"install:eslint": "(npm info eslint-config-react-app@latest peerDependencies --json | command sed 's/[\\{\\},]//g ; s/: /@/g' | xargs npm i -g eslint-config-react-app@latest)"
"install:eslint":
"(npm info eslint-config-react-app@latest peerDependencies --json | command sed 's/[\\{\\},]//g ; s/: /@/g' | xargs npm i -g eslint-config-react-app@latest)"
},
"lint-staged": {
"{src,scripts}/**/*.js": [
Expand All @@ -70,7 +77,8 @@
},
"jest": {
"snapshotSerializers": [
"<rootDir>/src/util/testSerializer.js"
"<rootDir>/src/util/testJsonSerializer.js",
"<rootDir>/src/util/testStringSerializer.js"
]
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 332a142

Please sign in to comment.