-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
21 lines (21 loc) · 1.48 KB
/
package.json
File metadata and controls
21 lines (21 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "playwright-custom-report",
"version": "1.0.0",
"description": "Playwright project with custom HTML reporter — CLI and VS Code / Cursor extension–friendly.",
"main": "index.js",
"scripts": {
"test": "playwright test",
"report:custom": "playwright show-report custom-report",
"verify:custom-report-root": "node -e \"const fs=require('fs');const s=fs.readFileSync('playwright.config.ts','utf8');if(!/repositoryRoot:\\s*PLAYWRIGHT_CONFIG_DIR/.test(s)){console.error('playwright.config.ts must pass repositoryRoot: PLAYWRIGHT_CONFIG_DIR (stable root for CLI + Playwright extension)');process.exit(1)}if(!/\\.\\/src\\/reporter\\/custom-report\\.ts/.test(s)){console.error('playwright.config.ts must register ./src/reporter/custom-report.ts');process.exit(1)}if(!/playwright-repo-root\\.cjs/.test(s)){console.error('playwright.config.ts must require ./playwright-repo-root.cjs for PLAYWRIGHT_CONFIG_DIR');process.exit(1)}if(!fs.existsSync('playwright-repo-root.cjs')){console.error('Missing playwright-repo-root.cjs');process.exit(1)}if(!/outputFolder:\\s*\\\"custom-report\\\"/.test(s)){console.error('playwright.config.ts must set outputFolder: \\\"custom-report\\\" for the custom HTML report');process.exit(1)}\"",
"typecheck": "tsc --noEmit && npm run verify:custom-report-root"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs",
"devDependencies": {
"@playwright/test": "^1.59.1",
"@types/node": "^25.6.2",
"typescript": "^6.0.3"
}
}