From f23d89c814473ae5255fa5400177245cf4bfa663 Mon Sep 17 00:00:00 2001 From: Peramanathan Sathyamoorthy Date: Mon, 17 May 2021 21:57:48 +0200 Subject: [PATCH] Fix cypress and jest autocomplete conflicts in vscode (#184) --- cypress/jsconfig.json | 9 +++++++++ jsconfig.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 cypress/jsconfig.json diff --git a/cypress/jsconfig.json b/cypress/jsconfig.json new file mode 100644 index 000000000..5e8cd1f1d --- /dev/null +++ b/cypress/jsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../jsconfig.json", + "compilerOptions": { + // be explicit about types included + // to avoid clashing with Jest types + "types": ["cypress"] + }, + "include": ["../node_modules/cypress", "./**/*.js"] +} diff --git a/jsconfig.json b/jsconfig.json index 8a8f1d58f..443548fd5 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -2,5 +2,5 @@ "compilerOptions": { "baseUrl": "./src" }, - "include": ["src", "node_modules/cypress", "./cypress/**/*.js"] + "include": ["src"] }