From 87060aa3ef287670eb6f4fe509870610a17da0e6 Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Fri, 23 Feb 2024 18:19:33 +0800 Subject: [PATCH] try: fix collison excluding and including --- packages/file-graph/tsconfig.json | 4 ++-- tests/cypress/support/commands.ts | 1 + tests/tsconfig.json | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/file-graph/tsconfig.json b/packages/file-graph/tsconfig.json index bf649ac..594a81a 100644 --- a/packages/file-graph/tsconfig.json +++ b/packages/file-graph/tsconfig.json @@ -1,9 +1,9 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "rootDir": "src", + // "rootDir": "src", "outDir": "./dist" }, - "include": ["src"], + "include": ["src", "tests"], "exclude": ["node_modules", "dist"] } diff --git a/tests/cypress/support/commands.ts b/tests/cypress/support/commands.ts index 86f2532..8f9f4c5 100644 --- a/tests/cypress/support/commands.ts +++ b/tests/cypress/support/commands.ts @@ -3,6 +3,7 @@ /// import '@testing-library/cypress/add-commands' +declare const expect: Chai.ExpectStatic declare global { namespace Cypress { interface Chainable { diff --git a/tests/tsconfig.json b/tests/tsconfig.json index 0862ad3..ce831eb 100644 --- a/tests/tsconfig.json +++ b/tests/tsconfig.json @@ -8,6 +8,7 @@ "exclude": [ "node_modules/cypress", "./cypress.config.mjs", - "../packages/utils/**/*.ts" + "../packages/utils/**/*.ts", + "../packages/file-graph/**/*.ts" ] }