Skip to content

Commit 25f1eb5

Browse files
committed
✅ Avoid build 2x for tests & skipCache
1 parent 1f3ecca commit 25f1eb5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/jest-puppeteer.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const defaultOptions = {
33
headless: true,
44
},
55
server: {
6-
command: 'npm run build && node .production/server.js',
6+
command: 'node .production/server.js',
77
port: 6969,
88
launchTimeout: 25000,
99
},
@@ -23,7 +23,7 @@ const ciPipelineOptions = {
2323
],
2424
},
2525
server: {
26-
command: 'npm run build && node .production/server.js',
26+
command: 'node .production/server.js',
2727
port: 6969,
2828
launchTimeout: 25000,
2929
},

tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"terser": "npm:@swc/core"
2424
},
2525
"scripts": {
26-
"start": "node ../scripts/index.js start --port=6969 --name=test --disk",
27-
"build": "node --enable-source-maps ../scripts/index.js build --name=test",
26+
"start": "node ../scripts/index.js start --port=6969 --name=test --disk -sc",
27+
"build": "node --enable-source-maps ../scripts/index.js build --name=test -sc",
2828
"clear": "rm -rf ../node_modules ../package-lock.json node_modules .development .production package-lock.json",
2929
"setup": "cd .. && npm install && cd tests && npm install",
3030
"test": "npm run build && jest --runInBand",

0 commit comments

Comments
 (0)