Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-06-01 17:50:58 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-06-01 17:50:58 -0700
commit163e3a9de59f5d6a8df38fa32a1e7dc4db1ad024 (patch)
tree8ae679d3059d8ee8c69a3d45994bc74e4388f76b /test/integration/setup.cjs
parente8fae51b32b6ebc4ec4e16338467b7fcc41edd11 (diff)
Fix/refactor tests
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);
}
});