refactor typescript configuration

This commit is contained in:
mahula 2025-11-21 15:39:55 +01:00
parent 80ebd6bc86
commit baf66c4241
3 changed files with 13 additions and 6 deletions

View File

@ -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')

View File

@ -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"]
}

View File

@ -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"]
}