diff --git a/cypress.config.ts b/cypress.config.ts index 52778a4..18a8f83 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from "cypress"; export default defineConfig({ e2e: { - specPattern: "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}", + specPattern: "cypress/tests/**/*.cy.{js,jsx,ts,tsx}", supportFile: false, }, @@ -12,4 +12,4 @@ export default defineConfig({ bundler: "vite", }, }, -}); +}); \ No newline at end of file diff --git a/cypress/support/index.ts b/cypress/support/index.ts new file mode 100644 index 0000000..1371651 --- /dev/null +++ b/cypress/support/index.ts @@ -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); diff --git a/tsconfig.cypress.json b/tsconfig.cypress.json deleted file mode 100644 index e1edeb3..0000000 --- a/tsconfig.cypress.json +++ /dev/null @@ -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"] -} \ No newline at end of file diff --git a/tsconfig.node.json b/tsconfig.node.json index 10a0027..0d3d714 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -18,6 +18,5 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["vite.config.ts"], - "exclude": ["cypress/tests/**/*"] + "include": ["vite.config.ts"] }