frontend-coverage.mjs now plans its steps from the command line. No arguments still runs everything, then reports and checks. --shard I/N runs one slice of the chromium+touch workflows into coverage/js/raw without wiping it or reporting; shard 1 also runs the node units and the viewer suite. --merge-only reports and checks over raw coverage the shards wrote, with --update-baseline as before, and refuses an empty or missing raw dir. npm scripts: test:coverage:shard and coverage:merge.
31 lines
1.4 KiB
JSON
31 lines
1.4 KiB
JSON
{
|
|
"name": "promptmanager-vendor-tools",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"description": "Maintainer-only tools for reproducible browser dependencies",
|
|
"scripts": {
|
|
"sync": "node vendor-viewerjs.mjs",
|
|
"check": "node vendor-viewerjs.mjs --check && node vendor-toolkit.mjs --check && node sync-concept-css.mjs --check",
|
|
"sync:concept": "node sync-concept-css.mjs --write",
|
|
"sync:toolkit": "node vendor-toolkit.mjs",
|
|
"update": "node update-viewerjs.mjs",
|
|
"test": "node --test ../../tests/vendor/*.test.mjs",
|
|
"test:browser": "playwright test --config playwright.config.mjs",
|
|
"test:workflows": "playwright test --config playwright.workflows.config.mjs",
|
|
"test:comfyui": "playwright test --config comfyui.config.mjs",
|
|
"test:executions": "playwright test --config playwright.execution.config.mjs",
|
|
"test:coverage": "node frontend-coverage.mjs",
|
|
"test:coverage:shard": "node frontend-coverage.mjs --shard",
|
|
"coverage:merge": "node frontend-coverage.mjs --merge-only",
|
|
"coverage:baseline-check": "node coverage-baseline-check.mjs",
|
|
"coverage:update": "node frontend-coverage.mjs --update-baseline",
|
|
"test:compat": "playwright test --config pack-compat.config.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"@comfyassets/toolkit": "https://codeload.github.com/ComfyAssets/ComfyAssets-Toolkit/tar.gz/ac245953df4c0d4b019c7bc59e93ad011c07ec22",
|
|
"@playwright/test": "1.64.1",
|
|
"c8": "12.0.0",
|
|
"viewerjs": "1.15.2"
|
|
}
|
|
}
|