From 5027f2b5c49fc4b4f8c467b72025f52c9603cbb2 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 14 Oct 2024 17:20:50 +0800 Subject: [PATCH] fix: move tsconfig.json for cypress e2e a level up Tools like `typescript-eslint` does not work well with this kind of `include` pattern (i.e. starting with `../`). --- template/tsconfig/cypress/cypress/{e2e => }/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename template/tsconfig/cypress/cypress/{e2e => }/tsconfig.json (60%) diff --git a/template/tsconfig/cypress/cypress/e2e/tsconfig.json b/template/tsconfig/cypress/cypress/tsconfig.json similarity index 60% rename from template/tsconfig/cypress/cypress/e2e/tsconfig.json rename to template/tsconfig/cypress/cypress/tsconfig.json index c94f1d49..c8f4bce5 100644 --- a/template/tsconfig/cypress/cypress/e2e/tsconfig.json +++ b/template/tsconfig/cypress/cypress/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@vue/tsconfig/tsconfig.dom.json", - "include": ["./**/*", "../support/**/*"], + "include": ["./e2e/**/*", "./support/**/*"], + "exclude": ["./support/component.*"], "compilerOptions": { "isolatedModules": false, "types": ["cypress"] -- 2.39.5