From 05c8471ab80adda34ddd18c312c132ac09b23f06 Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Wed, 14 Jun 2023 00:50:06 +0200 Subject: [PATCH] fix(cypress): move typings to a .d.ts file Part-of: --- front/cypress/cypress.d.ts | 7 +++++++ front/cypress/support/e2e.ts | 8 -------- front/cypress/tsconfig.json | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 front/cypress/cypress.d.ts 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 }