Skip to content

Commit 3777871

Browse files
committed
always build bundles before playwright
1 parent fe46fae commit 3777871

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

injected/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@
1010
"build-types": "node scripts/types.mjs",
1111
"bundle-trackers": "node scripts/bundleTrackers.mjs --output ../build/tracker-lookup.json",
1212
"test-unit": "jasmine --config=unit-test/config.json",
13-
"test-int": "npm run build-integration && npm run playwright",
13+
"test-int": "npm run playwright",
1414
"test-int-x": "xvfb-run --server-args='-screen 0 1024x768x24' npm run test-int",
1515
"test": "npm run lint && npm run test-unit && npm run test-int && npm run playwright",
1616
"serve": "http-server -c-1 --port 3220 integration-test/test-pages",
1717
"playwright": "playwright test --grep-invert '@screenshots'",
1818
"playwright-screenshots": "playwright test --grep '@screenshots'",
19-
"playwright-headed": "playwright test --headed",
20-
"preplaywright": "npm run bundle-entry-points",
21-
"preplaywright-headed": "npm run bundle-entry-points",
2219
"playwright-e2e": "playwright test -c playwright-e2e.config.js --project duckplayer-e2e",
23-
"playwright-e2e-headed": "npm run playwright-e2e -- --headed",
24-
"preplaywright-e2e": "npm run bundle-entry-points"
20+
"playwright-e2e-headed": "npm run playwright-e2e -- --headed"
2521
},
2622
"type": "module",
2723
"dependencies": {

injected/playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default defineConfig({
9393
webServer: {
9494
reuseExistingServer: true,
9595
ignoreHTTPSErrors: true,
96-
command: 'npm run serve',
96+
command: 'npm run bundle-entry-points && npm run serve',
9797
port: 3220,
9898
},
9999
use: {

0 commit comments

Comments
 (0)