Fix/refactor tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
console.log('\nSpawning server process...');
|
||||
const { spawn } = require('child_process');
|
||||
|
||||
module.exports = async function () {
|
||||
module.exports = async function (globalConfig, projectConfig) {
|
||||
const child = spawn('node', ['server.cjs']);
|
||||
|
||||
child.stdout.on('data', (data) => {
|
||||
@@ -13,7 +13,7 @@ module.exports = async function () {
|
||||
child.stderr.on('data', (data) => {
|
||||
const str = data.toString();
|
||||
console.log('[server]', str);
|
||||
if (str.includes('localhost:3005')) {
|
||||
if (str.includes(projectConfig.globals.testServerUrl)) {
|
||||
setTimeout(resolve, 200);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user