Skip to content

Commit c8c71a1

Browse files
author
Michał Miszczyszyn
authored
New version (#24)
* Record cypress * Update scripts * Add cypress --parallel * Add cypress --ci-build-id
1 parent e142b6c commit c8c71a1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,20 @@
1717
"homepage": "https://github.com/mmiszy/react-with-observable#readme",
1818
"scripts": {
1919
"build": "rimraf build && rollup -c",
20-
"test": "npm-run-all -p test:jest test:types",
21-
"test:ci": "npm-run-all -p test:coverage test:types",
22-
"test:cypress": "cypress run",
20+
"test": "npm-run-all -p test:coverage test:types",
21+
"test:ci": "npm-run-all test",
2322
"test:e2e": "npm-run-all build:examples -p --race serve:examples test:cypress",
24-
"test:jest": "jest --detectLeaks",
23+
"test:e2e:ci": "npm-run-all build:examples -p --race serve:examples test:cypress:ci",
2524
"test:types": "tslint -c ./tslint.json --project ./tsconfig.json",
25+
26+
"test:cypress": "cypress run --record",
27+
"test:cypress:ci": "cypress run --record --parallel --ci-build-id=$BUILD_ID",
2628
"test:coverage": "jest --detectLeaks --coverage",
29+
2730
"build:examples": "webpack --config examples/webpack.config.js --mode production",
2831
"serve:examples": "http-server ./examples -a localhost -p 8082 -c-1",
2932
"start:examples": "webpack-dev-server --config examples/webpack.config.js",
3033
"deploy:examples": "npm run build:examples && gh-pages --dist examples",
31-
"prettier": "prettier --config .prettierrc --write '**/*.{ts,js,tsx,jsx}'",
3234
"release": "np --no-yarn",
3335
"prepare": "npm run build",
3436
"postdeploy": "npm run deploy:examples"
@@ -85,8 +87,7 @@
8587
},
8688
"husky": {
8789
"hooks": {
88-
"pre-commit": "pretty-quick --staged",
89-
"pre-push": "npm test"
90+
"pre-commit": "pretty-quick --staged"
9091
}
9192
}
9293
}

0 commit comments

Comments
 (0)