mirror of
https://github.com/zoriya/flood.git
synced 2026-08-15 18:53:27 +00:00
testsetup: switch to development server
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user