-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
53 lines (53 loc) · 2.4 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"name": "cypress-test",
"version": "0.0.1",
"description": "",
"main": "index.js",
"dependencies": {
"cypress": "5.0.0",
"cypress-image-snapshot": "^3.1.1",
"cypress-multi-reporters": "^1.2.4",
"eslint-plugin-cypress": "^2.11.1",
"mocha-junit-reporter": "^1.23.3",
"mochawesome": "^6.1.1",
"mochawesome-merge": "^4.1.0",
"mochawesome-report-generator": "^5.1.0"
},
"devDependencies": {
"cypress-plugin-tab": "^1.0.5",
"cypress-xpath": "^1.6.0",
"eslint": "^7.7.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"mocha": "^7.1.0",
"prettier-standard": "^16.4.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"open": "cypress open",
"format": "prettier-standard --format",
"precommit": "yarn format && lint-staged",
"delete:reports": "rm cypress/results/* || true",
"delete:diffimage": "rm -r cypress/screenshots/styleguidist/* || true && cd cypress/snapshots && find . f -name '*diff*' -delete ",
"delete:visualregressiontest:images:all": "rm -r cypress/snapshots/visual-regression-test.spec.js/* || true && rm -r cypress/screenshot/visual-regression-test.spec.js/* || true",
"delete:visualregressiontest:images:electron": "rm -r cypress/snapshots/visual-regression-test/electron/* || true && cypress/screenshot/visual-regression-test/electron/* || true",
"prereport": "yarn delete:reports",
"mergereport": "yarn mochawesome-merge ./cypress/results/*.json -o ./cypress/results/mergedreport.json && yarn marge ./cypress/results/mergedreport.json --reportDir ./cypress/results/ --inline",
"baseline:visualregressiontest": "yarn delete:visualregressiontest:images:electron && cypress run --env isBaseline=true --spec \"cypress/integration/visual-regression-test.spec.js\" --headless --config video=false --reporter mochawesome",
"test:visualregressiontest": "yarn delete:visualregressiontest:images:electron && cypress run --spec \"cypress/integration/visual-regression-test.spec.js\" --headless --config video=false --reporter mochawesome"
},
"author": "",
"license": "ISC",
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"configFile": "reporter-config.json"
},
"lint-staged": {
"*": [
"prettier-standard --lint"
]
}
}