diff --git a/packages/e2e/shared/cypress.config.ts b/packages/e2e/shared/cypress.config.ts index dfc1dfe7..072ecd9b 100644 --- a/packages/e2e/shared/cypress.config.ts +++ b/packages/e2e/shared/cypress.config.ts @@ -12,13 +12,13 @@ export function defineConfig(config: Config) { video: false, fixturesFolder: false, testIsolation: true, - defaultCommandTimeout: 500, + defaultCommandTimeout: process.env.CI ? 1000 : 200, setupNodeEvents(on) { cypressTerminalReport(on) }, retries: { openMode: 0, - runMode: 1 + runMode: process.env.CI ? 1 : 0 }, ...config } diff --git a/packages/e2e/shared/package.json b/packages/e2e/shared/package.json index 9200619e..7faddb3a 100644 --- a/packages/e2e/shared/package.json +++ b/packages/e2e/shared/package.json @@ -19,6 +19,7 @@ "devDependencies": { "@types/react": "catalog:react19", "@types/react-dom": "catalog:react19", + "@types/node": "^22.9.0", "cypress": "catalog:e2e", "nuqs": "workspace:*", "react": "catalog:react19", diff --git a/packages/e2e/shared/tsconfig.json b/packages/e2e/shared/tsconfig.json index 1bd1113d..ff82a468 100644 --- a/packages/e2e/shared/tsconfig.json +++ b/packages/e2e/shared/tsconfig.json @@ -24,7 +24,7 @@ // Misc "skipLibCheck": true, "skipDefaultLibCheck": true, - "types": ["cypress"] + "types": ["node", "cypress"] }, "include": ["**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 16a248da..59da8c0d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -485,6 +485,9 @@ importers: specifier: ^7.0.4 version: 7.0.4(cypress@13.15.2) devDependencies: + '@types/node': + specifier: ^22.9.0 + version: 22.9.0 '@types/react': specifier: catalog:react19 version: 19.0.0