diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 290370d90..a39600574 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -23,7 +23,7 @@ module.exports = { parser: "@typescript-eslint/parser", parserOptions: { tsconfigRootDir: __dirname, - project: ["./*/tsconfig.json"], + project: ["./*/tsconfig.json", "./tsconfig.json"], }, plugins: ["@typescript-eslint"], settings: { @@ -45,7 +45,7 @@ module.exports = { // always try to resolve types alwaysTryTypes: true, // look here for tsconfig files - project: ["./*/tsconfig.json"], + project: ["./*/tsconfig.json", "./tsconfig.json"], }, }, }, diff --git a/tsconfig.json b/tsconfig.json index 09d97f32b..8e7caec58 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -51,5 +51,5 @@ } ] }, - "include": ["./graphql/*.ts"] + "include": ["./graphql/*.ts", "./vitest.config.ts"] } diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 000000000..c656ac54c --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + projects: ["front/vite.config.ts", "shared-components/vitest.config.ts"], + }, +}); diff --git a/vitest.workspace.json b/vitest.workspace.json deleted file mode 100644 index 42dca4232..000000000 --- a/vitest.workspace.json +++ /dev/null @@ -1 +0,0 @@ -["front/vite.config.ts", "shared-components/vitest.config.ts"]