From baf66c4241b3903bbf5853b008b7d17081f0d019 Mon Sep 17 00:00:00 2001 From: mahula Date: Fri, 21 Nov 2025 15:39:55 +0100 Subject: [PATCH] refactor typescript configuration --- cypress/e2e/steps/login.ts | 4 ++-- cypress/tsconfig.json | 12 +++++++++--- tsconfig.json | 3 ++- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/steps/login.ts b/cypress/e2e/steps/login.ts index 9fcd85e..fd4cffd 100644 --- a/cypress/e2e/steps/login.ts +++ b/cypress/e2e/steps/login.ts @@ -3,8 +3,8 @@ /* eslint-disable import/no-relative-parent-imports */ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' -import { loginPage } from '../pages/LoginPage.js' -import { welcomePage } from '../pages/WelcomePage.js' +import { loginPage } from '../pages/LoginPage' +import { welcomePage } from '../pages/WelcomePage' Given('The web browser is at the login page', () => { cy.visit('/login') diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index b24df79..a757e19 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -1,8 +1,14 @@ { "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], + "target": "ES2022", + "lib": ["ES2022", "dom"], + "module": "ESNext", + "moduleResolution": "node", + "esModuleInterop": true, + "strict": true, + "skipLibCheck": true, "types": ["cypress", "node"] }, - "include": ["./**/*.ts", ".vuepress/config.ts"] + "include": ["./**/*.ts"], + "exclude": ["node_modules"] } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 0a5ad3b..04a5284 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,8 +4,9 @@ "module": "nodenext", "lib": ["ES2022", "dom"], "strict": true, + "skipLibCheck": true, "types": ["cypress", "node"] }, "include": ["**/*.ts", ".vuepress/config.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "cypress"] } \ No newline at end of file