Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/setup.cjs')
-rw-r--r--test/integration/setup.cjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/setup.cjs b/test/integration/setup.cjs
index 2ea9e63..cc68a59 100644
--- a/test/integration/setup.cjs
+++ b/test/integration/setup.cjs
@@ -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);
}
});