diff --git a/front/cypress/cypress.d.ts b/front/cypress/cypress.d.ts new file mode 100644 index 000000000..f10ea6f51 --- /dev/null +++ b/front/cypress/cypress.d.ts @@ -0,0 +1,7 @@ +declare global { + namespace Cypress { + interface Chainable { + login(): Chainable> + } + } +} diff --git a/front/cypress/support/e2e.ts b/front/cypress/support/e2e.ts index ec5d40c49..43c03b759 100644 --- a/front/cypress/support/e2e.ts +++ b/front/cypress/support/e2e.ts @@ -1,9 +1 @@ import './commands' - -declare global { - namespace Cypress { - interface Chainable { - login(): Chainable> - } - } -} diff --git a/front/cypress/tsconfig.json b/front/cypress/tsconfig.json index 8817648bd..f921779de 100644 --- a/front/cypress/tsconfig.json +++ b/front/cypress/tsconfig.json @@ -4,6 +4,6 @@ "lib": ["es5", "dom"], "types": ["cypress", "node"] }, - "include": ["**/*.ts"], + "include": ["**/*.ts", "./cypress.d.ts"], "isolatedModules": false }