mirror of
https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber.git
synced 2025-12-13 04:55:50 +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 */
|
/* eslint-disable import/no-relative-parent-imports */
|
||||||
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor'
|
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor'
|
||||||
|
|
||||||
import { loginPage } from '../pages/LoginPage.js'
|
import { loginPage } from '../pages/LoginPage'
|
||||||
import { welcomePage } from '../pages/WelcomePage.js'
|
import { welcomePage } from '../pages/WelcomePage'
|
||||||
|
|
||||||
Given('The web browser is at the login page', () => {
|
Given('The web browser is at the login page', () => {
|
||||||
cy.visit('/login')
|
cy.visit('/login')
|
||||||
|
|||||||
@ -1,8 +1,14 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "ES2022",
|
||||||
"lib": ["es5", "dom"],
|
"lib": ["ES2022", "dom"],
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"strict": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
"types": ["cypress", "node"]
|
"types": ["cypress", "node"]
|
||||||
},
|
},
|
||||||
"include": ["./**/*.ts", ".vuepress/config.ts"]
|
"include": ["./**/*.ts"],
|
||||||
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
@ -4,8 +4,9 @@
|
|||||||
"module": "nodenext",
|
"module": "nodenext",
|
||||||
"lib": ["ES2022", "dom"],
|
"lib": ["ES2022", "dom"],
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
"types": ["cypress", "node"]
|
"types": ["cypress", "node"]
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts", ".vuepress/config.ts"],
|
"include": ["**/*.ts", ".vuepress/config.ts"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules", "cypress"]
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user