-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
37 lines (37 loc) · 1.13 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"name": "cypress-coverage-example",
"version": "1.0.0",
"description": "Cypress with coverage reports",
"main": "index.js",
"license": "MIT",
"browserslist": [
">1%",
"Explorer >= 11",
"not op_mini all"
],
"devDependencies": {
"@babel/core": "^7.0.0-rc.2",
"@babel/preset-env": "^7.0.0-rc.2",
"babel-loader": "^8.0.0-beta.6",
"babel-plugin-istanbul": "^4.1.6",
"cross-env": "^5.2.0",
"cypress": "^3.1.0",
"istanbul-lib-coverage": "^1.2.0",
"nyc": "^12.0.2",
"webpack": "^4.17.1",
"webpack-command": "^0.4.1"
},
"nyc": {
"temp-directory": "./coverage",
"report-dir": "./coverage"
},
"scripts": {
"build": "webpack --config ./webpack.config.js",
"coverage": "npm run-script coverage:build && cypress run --env coverage=true && npm run-script coverage:report",
"coverage:build": "cross-env NODE_ENV=test npm run-script build",
"coverage:open": "npm run-script coverage:build && cypress open --env coverage=open",
"coverage:report": "nyc report --reporter=html --reporter=text",
"cypress": "cypress run",
"cypress:open": "cypress open"
}
}