mirror of
https://github.com/modelec/modelec.club.git
synced 2026-01-18 16:37:30 +01:00
C pu pété V2
This commit is contained in:
@@ -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
16
cypress/support/index.ts
Normal 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);
|
||||||
@@ -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"]
|
|
||||||
}
|
|
||||||
@@ -18,6 +18,5 @@
|
|||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true
|
"noFallthroughCasesInSwitch": true
|
||||||
},
|
},
|
||||||
"include": ["vite.config.ts"],
|
"include": ["vite.config.ts"]
|
||||||
"exclude": ["cypress/tests/**/*"]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user