testsetup: switch to development server

This commit is contained in:
Jesse Chan
2020-12-10 01:31:31 +08:00
parent 559ecaa0d8
commit 20c33b8e05
2 changed files with 5 additions and 2 deletions

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 = () => {