fix cypress types for VS code
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
// This function is called when a project is opened or re-opened (e.g. due to
|
// This function is called when a project is opened or re-opened (e.g. due to
|
||||||
// the project's config changing)
|
// the project's config changing)
|
||||||
|
|
||||||
|
/// <reference types="cypress" />
|
||||||
|
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
module.exports = (on, config) => {
|
module.exports = (on, config) => {
|
||||||
// `on` is used to hook into various events Cypress emits
|
// `on` is used to hook into various events Cypress emits
|
||||||
|
|||||||
@@ -2,10 +2,12 @@
|
|||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noEmit": false,
|
"noEmit": false,
|
||||||
"sourceMap": false
|
"sourceMap": false,
|
||||||
|
"types": [
|
||||||
|
"cypress",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"../node_modules/cypress",
|
|
||||||
"./*/*.ts"
|
"./*/*.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user