From 10a0a6926ec7fdf791383552e136e7c25d9ed440 Mon Sep 17 00:00:00 2001 From: Marcus Schiesser <mail@marcusschiesser.de> Date: Wed, 6 Dec 2023 15:57:08 +0700 Subject: [PATCH] fix: running tests on windows --- e2e/utils.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/e2e/utils.ts b/e2e/utils.ts index 3085263d..2716254a 100644 --- a/e2e/utils.ts +++ b/e2e/utils.ts @@ -21,16 +21,22 @@ export async function runApp( cps.push( await createProcess( "npm run dev", - `${cwd}/${name}/backend`, + path.join(cwd, name, "backend"), port + 1, ), ); cps.push( - await createProcess("npm run dev", `${cwd}/${name}/frontend`, port), + await createProcess( + "npm run dev", + path.join(cwd, name, "frontend"), + port, + ), ); break; default: - cps.push(await createProcess("npm run dev", `${cwd}/${name}`, port)); + cps.push( + await createProcess("npm run dev", path.join(cwd, name), port), + ); break; } } catch (e) { -- GitLab