fix: hide expected webServer errors in E2E tests to reduce noise (#26251)
* fix: e2e failure in CI * fix
This commit is contained in:
1 parent
ff9d88479c
commit
5f0e408d2f
1 file changed
+7
@@ -25,6 +25,7 @@ const headless = !!process.env.CI || !!process.env.PLAYWRIGHT_HEADLESS;
|
|||||||
const IS_EMBED_TEST = process.argv.some((a) => a.startsWith("--project=@calcom/embed-core"));
|
const IS_EMBED_TEST = process.argv.some((a) => a.startsWith("--project=@calcom/embed-core"));
|
||||||
const IS_EMBED_REACT_TEST = process.argv.some((a) => a.startsWith("--project=@calcom/embed-react"));
|
const IS_EMBED_REACT_TEST = process.argv.some((a) => a.startsWith("--project=@calcom/embed-react"));
|
||||||
|
|
||||||
|
// Suppress all webServer logs to reduce noise during E2E tests
|
||||||
const webServer: PlaywrightTestConfig["webServer"] = [
|
const webServer: PlaywrightTestConfig["webServer"] = [
|
||||||
{
|
{
|
||||||
command:
|
command:
|
||||||
@@ -32,6 +33,8 @@ const webServer: PlaywrightTestConfig["webServer"] = [
|
|||||||
port: 3000,
|
port: 3000,
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
|
stdout: "ignore",
|
||||||
|
stderr: "ignore",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -43,6 +46,8 @@ if (IS_EMBED_TEST) {
|
|||||||
port: 3100,
|
port: 3100,
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
|
stdout: "ignore",
|
||||||
|
stderr: "ignore",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,6 +59,8 @@ if (IS_EMBED_REACT_TEST) {
|
|||||||
port: 3101,
|
port: 3101,
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
|
stdout: "ignore",
|
||||||
|
stderr: "ignore",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user