From 70fc578cfdc204a5eb1d5430bdff1fea874e46e1 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 30 Sep 2020 17:34:05 +0200 Subject: [PATCH] fix cypress types for VS code --- tests/cypress/plugins/index.js | 2 ++ tests/cypress/tsconfig.json | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/cypress/plugins/index.js b/tests/cypress/plugins/index.js index 94620a2c..6aca8d7d 100644 --- a/tests/cypress/plugins/index.js +++ b/tests/cypress/plugins/index.js @@ -11,6 +11,8 @@ // This function is called when a project is opened or re-opened (e.g. due to // the project's config changing) +/// + // eslint-disable-next-line module.exports = (on, config) => { // `on` is used to hook into various events Cypress emits diff --git a/tests/cypress/tsconfig.json b/tests/cypress/tsconfig.json index dcb69cf8..974e84cd 100644 --- a/tests/cypress/tsconfig.json +++ b/tests/cypress/tsconfig.json @@ -2,10 +2,12 @@ "extends": "../../tsconfig.json", "compilerOptions": { "noEmit": false, - "sourceMap": false + "sourceMap": false, + "types": [ + "cypress", + ], }, "include": [ - "../node_modules/cypress", "./*/*.ts" ] }