-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
47 lines (47 loc) · 2.52 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
{
"name": "playwright-workshop",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"build-fe": "cd ./mock-app && npx vite build --outDir=dist-e2e",
"typecheck": "tsc --noEmit",
"format": "prettier --cache --write .",
"format-check": "prettier --cache --check .",
"lint": "eslint ./ --max-warnings 0",
"lint:fix": "npm run lint -- --fix",
"build-tests": "rimraf ./tests-out && tsc",
"playwright-tests": "run-script-os",
"playwright-tests:windows": "playwright test --project=chrome --project=firefox --project=edge -c ./tests-out",
"playwright-tests:macos": "playwright test --project=chrome --project=firefox --project=webkit -c ./tests-out",
"playwright-tests:linux": "playwright test --project=chrome --project=firefox -c ./tests-out",
"playwright-tests:default": "echo \"Error: Platform not supported\" & exit 1",
"test": "npm run build-fe && npm run build-tests && npm run playwright-tests",
"install-browsers": "run-script-os",
"install-browsers:windows": "playwright install --with-deps chrome & playwright install --with-deps firefox & playwright install --with-deps msedge & playwright install ffmpeg",
"install-browsers:macos": "playwright install --with-deps chrome; playwright install --with-deps firefox; playwright install --with-deps webkit; playwright install ffmpeg",
"install-browsers:linux": "playwright install --with-deps chrome; playwright install --with-deps firefox; playwright install ffmpeg",
"install-browsers:default": "echo \"Error: Platform not supported\" & exit 1",
"test:debug": "npm run build-fe && npm run build-tests && playwright test --debug --project=chrome -c ./tests-out",
"test:strict": "npm run build-fe && npm run build-tests && playwright test --project=chrome -c ./tests-out --retries=0 --trace=on",
"test:watch": "npm run build-fe && npm run build-tests && concurrently --handleInput --defaultInputTarget=1 --kill-others \"tsc -w\" \"cross-env PWTEST_WATCH=1 npm run playwright-tests\"",
"show-report": "playwright show-report --host=0.0.0.0"
},
"dependencies": {
"@playwright/test": "^1.50.1"
},
"devDependencies": {
"@arabasta/eslint-config": "^1.0.8",
"@total-typescript/ts-reset": "^0.6.1",
"@types/node": "^22.13.1",
"concurrently": "^9.1.2",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
"eslint-plugin-playwright": "^1.8.3",
"prettier": "^3.5.0",
"rimraf": "^6.0.1",
"run-script-os": "^1.1.6",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.0"
}
}