generated from mmisty/cypress-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
143 lines (143 loc) · 7.83 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"name": "@mmisty/cypress-grep",
"version": "0.0.0",
"description": "Filters tests by tags/title using substring or regular expressions (can find dynamic tags)",
"main": "index.js",
"repository": "[email protected]:mmisty/cypress-grep.git",
"homepage": "https://github.com/mmisty/cypress-grep#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"bin": {
"cy-grep": "bin/cy-grep.js"
},
"keywords": [
"cypress",
"e2e",
"tests",
"typescript",
"template",
"grep",
"select",
"filter"
],
"license": "Apache-2.0",
"author": "Taisia Pitko (mmisty) <[email protected]>",
"scripts": {
"husky:install": "husky install",
"lint": "eslint --fix '**/*.{ts,tsx,js}'",
"test": "jest --reporters=default --reporters=jest-junit",
"test:cov:int": "CI=true jest --testPathPattern=\"tests/test-folder/integration\" --coverage --runInBand --coverageDirectory reports/coverage-jest --reporters=default --reporters=jest-junit",
"test:cov": "CI=true jest --testPathIgnorePatterns=\"tests/test-folder/integration\" --coverage --runInBand --coverageDirectory reports/coverage-jest --reporters=default --reporters=jest-junit",
"cy:open": "npx cypress open --browser chrome --e2e",
"cy:run:grep": "node src/bin/cy-grep.js --script 'npm run cy:run' --p './reports/filtered.json'",
"cy:open:all": "npm run cy:open -- --browser chrome --config specPattern='integration/**/all-tests.js'",
"cy:run": "npx cypress run --browser chrome --headless",
"cy:run:regress": "npm run cy:run -- --config specPattern='integration/e2e/regression/**/*.ts'",
"cy:run:grep:cov": "CYPRESS_COVERAGE=true COVERAGE_REPORT_DIR=reports/coverage-cypress npm run cy:run:grep",
"cy:grep:regress": "node src/bin/cy-grep.js --script 'npm run cy:run:regress'",
"cy:run:1": "CYPRESS_GREP_showTagsInTitle=true npm run cy:run:grep:cov",
"cy:run:2": "CYPRESS_GREP_showTagsInTitle=false npm run cy:run:grep:cov",
"cy:run:3": "CYPRESS_INTER=true npm run cy:run:grep:cov -- -- --script 'npm run cy:run -- --config specPattern=\"integration/e2e/**/*.cy.ts\"' ",
"cy:run:4": "CYPRESS_GREP='@cyApi&!@navbar' CYPRESS_GREP_showTagsInTitle=true npm run cy:run:grep:cov",
"cy:run:4.1": "CYPRESS_GREP='@cyApi&' npm run cy:run:grep:cov",
"cy:run:4.2": "CYPRESS_GREP='@navbar' npm run cy:run:grep:cov",
"cy:run:4.3": "CYPRESS_GREP='@navbar' npm run cy:run:grep:cov",
"cy:run:parallel": "npm run cy:run:4.1 & npm run cy:run:4.2 & npm run cy:run:4.3",
"cy:run:5": "CYPRESS_GREP='@cyApi&!@navbar' CYPRESS_GREP_showTagsInTitle=false npm run cy:run:grep:cov",
"cy:run:6": "CYPRESS_GREP='@cyApi&!@navbar' CYPRESS_GREP_showTagsInTitle=false CYPRESS_GREP_showExcludedTests=false npm run cy:run:grep:cov",
"cy:run:7": "CYPRESS_GREP_TESTS_FOLDER='integration/e2e' CYPRESS_GREP='@navbar' CYPRESS_GREP_showTagsInTitle=false npm run cy:run:grep:cov",
"cy:run:8": "CYPRESS_GREP_TESTS_FOLDER='integration/e2e' CYPRESS_GREP='@notExisting' npm run cy:run:grep:cov || true",
"cy:run:9": "npm run cy:run:grep:cov -- -- --f",
"cy:run:cov": "npm run cy:run:1 && npm run cy:run:2 && npm run cy:run:3 && npm run cy:run:4 && npm run cy:run:5 && npm run cy:run:6&& npm run cy:run:7&& npm run cy:run:8&& npm run cy:run:9 && npm run cy:run:parallel",
"cy:open:cov": "COVERAGE_REPORT_DIR=reports/coverage-cypress COVERAGE=true npm run cy:open",
"build": "rm -rf lib && tsc --project tsconfig.build.json",
"build:tests": "tsc && cd tests && tsc",
"build:cy": "cd integration && tsc",
"build:all": "npm run build && npm run build:cy && npm run build:tests",
"test:all": "rm -rf filtered_test_paths.json && npm run test:cov && npm run cy:run:cov",
"cov:merge": "node ./.scripts/merge.js --cypress reports/coverage-cypress --jest reports/coverage-jest --out reports/coverage-temp --report reports/coverage-2",
"cov:merge:fin": "node ./.scripts/merge.js --cypress reports/coverage-2 --jest reports/coverage-jest --out reports/coverage-temp --report reports/coverage-full && npm run cov:fin",
"cov": "http-server reports/coverage-full/lcov-report",
"cov:jest": "http-server reports/coverage-jest/lcov-report",
"cov:cy": "http-server reports/coverage-cypress/lcov-report",
"cov:check": "COVERAGE_TEMP=reports/coverage-temp nyc check-coverage",
"cov:show": "COVERAGE_TEMP=reports/coverage-temp nyc report --reporter=text",
"cov:fin": "npx nyc report -t reports/coverage-full --report-dir reports/coverage-full-total",
"all": "npm run pre && npm run cov:check && npm run cov",
"pre": "rm -rf ./node_modules/.cache lib reports coverage-nyc .nyc_output && npm run lint && npm run build:all && npm run test:all && npm run cov:merge",
"try:pack": "npm run prepublishOnly && npm pack && npm run postpublish",
"pack": "npm run build && cp package.json ./lib/package.json && cp README.pack.md ./lib/README.md && cp CHANGELOG.md ./lib/CHANGELOG.md && sh .scripts/remove.sh && cd lib && npm version $ver --no-git-tag-version ",
"publishPack": "npm run pack && cd lib && npm publish --tag $TAG",
"publish:alpha": "export TAG=alpha && export ver=$(semver $(npm show . version --tag alpha || npm show . version) --increment -i prerelease --preid 'alpha') && npm run publishPack && npm run postpublish",
"publish:alpha:init": "export TAG=alpha && export ver=$(semver $(npm show . version) --increment -i prerelease --preid 'alpha') && npm run publishPack && npm run postpublish",
"publish:patch": "export TAG=latest && export ver=$(semver $(npm show . version) --increment -i patch) && npm run publishPack && npm run postpublish",
"publish:minor": "export TAG=latest && export ver=$(semver $(npm show . version) --increment -i minor) && npm run publishPack && npm run postpublish",
"publish:major": "export TAG=latest && export ver=$(semver $(npm show . version) --increment -i major) && npm run publishPack && npm run postpublish",
"publish:pack": "export TAG=latest && export ver=\"0.0.2-alpha-2\" && npm run publishPack && npm run postpublish",
"postpublish": "git tag v$ver",
"fmt": "pretty-quick"
},
"jest-junit": {
"suiteName": "jest tests",
"outputDirectory": "./reports/jest",
"outputName": "junit.xml",
"uniqueOutputName": "false",
"classNameTemplate": "{classname}-{title}",
"titleTemplate": "{classname}-{title}",
"ancestorSeparator": " › ",
"usePathForSuiteName": "true"
},
"devDependencies": {
"@cypress/code-coverage": "^3.13.10",
"@ephesoft/webpack.istanbul.loader": "^2.2.0",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@mmisty/cypress-allure-adapter": "^3.2.2",
"@types/jest": "^29.5.12",
"@types/mocha": "^9.1.1",
"@types/node": "^18.19.34",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"allure-js-parser": "^0.0.10",
"cypress": "^13.17.0",
"cypress-redirect-browser-log": "^1.3.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-cypress": "^2.15.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.2.0",
"husky": "^8.0.3",
"istanbul-lib-coverage": "^3.2.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-junit": "^16.0.0",
"jest-test-each": "^0.9.1",
"nyc": "^15.1.0",
"pretty-quick": "^3.3.1",
"ts-jest": "^29.1.4",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "^4.9.5",
"webpack": "^5.97.1"
},
"overrides": {
"loader-utils": "1.4.2"
},
"dependencies": {
"@mmisty/cypress-tags": "^1.1.0",
"cypress-controls-ext": "^0.2.0",
"fast-glob": "^3.3.3",
"yargs": "^17.7.2"
},
"engines": {
"node": ">=16",
"npm": ">=8"
},
"volta": {
"node": "18.12.0",
"npm": "8.19.2"
}
}