fix cypress types for VS code

This commit is contained in:
Hans Pagel
2020-09-30 17:34:05 +02:00
parent 82a9654189
commit 70fc578cfd
2 changed files with 6 additions and 2 deletions

View File

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

View File

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