mirror of
https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber.git
synced 2025-12-13 04:55:50 +00:00
fix linting
This commit is contained in:
parent
89846e6b89
commit
08064bbecf
@ -1 +1,2 @@
|
|||||||
|
build/
|
||||||
node_modules/
|
node_modules/
|
||||||
@ -1,3 +1,5 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||||
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
||||||
import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor'
|
import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor'
|
||||||
import webpack from '@cypress/webpack-preprocessor'
|
import webpack from '@cypress/webpack-preprocessor'
|
||||||
import { defineConfig } from 'cypress'
|
import { defineConfig } from 'cypress'
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
||||||
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor'
|
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor'
|
||||||
|
|
||||||
import { loginPage } from '../../pages/LoginPage'
|
import { loginPage } from '#pages/LoginPage'
|
||||||
import { welcomePage } from '../../pages/WelcomePage'
|
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')
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
"#pages/*": [
|
"#pages/*": [
|
||||||
"../pages/*.ts"
|
"../pages/*.ts"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
"include": ["./**/*.ts"]
|
"include": ["./**/*.ts"]
|
||||||
}
|
}
|
||||||
@ -4,7 +4,10 @@
|
|||||||
"target": "ES2020",
|
"target": "ES2020",
|
||||||
"lib": ["ES2022", "dom"],
|
"lib": ["ES2022", "dom"],
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"types": ["cypress", "node"]
|
"types": ["cypress", "node"],
|
||||||
|
"paths": {
|
||||||
|
"#pages/*": ["./cypress/pages/*"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts"],
|
"include": ["**/*.ts"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user