mirror of
https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber.git
synced 2025-12-12 20:55:48 +00:00
refactor typescript configuration
This commit is contained in:
parent
80ebd6bc86
commit
baf66c4241
@ -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')
|
||||
|
||||
@ -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"]
|
||||
}
|
||||
@ -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"]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user