C pu pété V2

This commit is contained in:
2024-11-20 19:49:11 +01:00
parent e970331961
commit 4b830dfc0c
4 changed files with 19 additions and 19 deletions

View File

@@ -2,7 +2,7 @@ import { defineConfig } from "cypress";
export default defineConfig({ export default defineConfig({
e2e: { e2e: {
specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}", specPattern: "cypress/tests/**/*.cy.{js,jsx,ts,tsx}",
supportFile: false, supportFile: false,
}, },
@@ -12,4 +12,4 @@ export default defineConfig({
bundler: "vite", bundler: "vite",
}, },
}, },
}); });

16
cypress/support/index.ts Normal file
View File

@@ -0,0 +1,16 @@
// Import commands.js using ES2015 syntax:
import './commands';
// Alternatively you can use CommonJS syntax:
// require('./commands');
// This is a great place to put global configuration and behavior that modifies Cypress
// Cypress automatically includes support files before every test file
// You can use this file to set up global configurations and behaviors
// Example: Setting a base URL
Cypress.config('baseUrl', 'http://localhost:3000');
// Example: Setting default timeout
Cypress.config('defaultCommandTimeout', 10000);

View File

@@ -1,15 +0,0 @@
{
"compilerOptions": {
"target": "ES2022",
"lib": ["ES2023"],
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"isolatedModules": true,
"noEmit": true,
"strict": true
},
"include": ["**/*.cy.ts", "**/*.cy.tsx"]
}

View File

@@ -18,6 +18,5 @@
"noUnusedParameters": true, "noUnusedParameters": true,
"noFallthroughCasesInSwitch": true "noFallthroughCasesInSwitch": true
}, },
"include": ["vite.config.ts"], "include": ["vite.config.ts"]
"exclude": ["cypress/tests/**/*"]
} }