1
import { defineConfig } from "cypress";
2
import cypressSplit from "cypress-split";
3
import fs from "node:fs";
5
const isCI = process.env.CI === "true";
7
export default defineConfig({
10
chromeWebSecurity: false,
13
defaultCommandTimeout: 30000,
14
numTestsKeptInMemory: 30,
15
experimentalMemoryManagement: true,
22
baseUrl: "http://localhost:8080",
23
slowTestThreshold: 30000,
24
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
25
setupNodeEvents(on, config) {
26
on("after:spec", (spec, results) => {
29
const failures = results.tests.some((test) =>
30
test.attempts.some((attempt) => attempt.state === "failed"),
35
fs.unlinkSync(results.video);
40
cypressSplit(on, config);