create-app: update e2e test config to run app and backend separately

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-08-11 14:28:14 +02:00
parent e1d5bff532
commit 274ef53e13
3 changed files with 21 additions and 10 deletions
@@ -32,11 +32,17 @@ export default defineConfig({
? []
: [
{
command: 'yarn start',
command: 'yarn start app',
port: 3000,
reuseExistingServer: true,
timeout: 60_000,
},
{
command: 'yarn start backend',
port: 7007,
reuseExistingServer: true,
timeout: 60_000,
},
],
forbidOnly: !!process.env.CI,
@@ -32,11 +32,17 @@ export default defineConfig({
? []
: [
{
command: 'yarn start',
command: 'yarn start app',
port: 3000,
reuseExistingServer: true,
timeout: 60_000,
},
{
command: 'yarn start backend',
port: 7007,
reuseExistingServer: true,
timeout: 60_000,
},
],
forbidOnly: !!process.env.CI,
+7 -8
View File
@@ -32,18 +32,17 @@ export default defineConfig({
? []
: [
{
command: 'yarn start',
command: 'yarn start example-app',
port: 3000,
reuseExistingServer: true,
timeout: 60_000,
},
// TODO: Before encouraging e2e tests for backend we'll want to provide better utilities for mocking auth
// {
// command: 'yarn start-backend',
// port: 7007,
// reuseExistingServer: true,
// timeout: 60_000,
// },
{
command: 'yarn start example-backend',
port: 7007,
reuseExistingServer: true,
timeout: 60_000,
},
],
forbidOnly: !!process.env.CI,