Fix/refactor tests

This commit is contained in:
2025-06-16 22:41:31 -07:00
parent dac61e6121
commit c46c361217
15 changed files with 160 additions and 135 deletions

View File

@@ -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);
}
});