testsetup: switch to development server

This commit is contained in:
Jesse Chan
2020-12-10 23:48:58 +08:00
parent 559ecaa0d8
commit 20c33b8e05
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
- run: sudo CYPRESS_INSTALL_BINARY=0 npm i -g cypress
- run: npm ci
- run: npm run build
- run: npm run build-assets
- run: node scripts/testsetup.js -p 4200 & echo $! > testenv.pid
- run: wait-on tcp:4200
+4 -1
View File
@@ -40,7 +40,10 @@ const startFlood = () => {
return;
}
floodProcess = spawn(`${path.join(__dirname, '../dist/index.js')}`, argv, {stdio: 'inherit'});
floodProcess = spawn('npm', ['run', 'start:development:server', '--'].concat(argv), {
cwd: path.join(__dirname, '..'),
stdio: 'inherit',
});
};
const closeProcesses = () => {