diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index f6197d79..9f9c7b6e 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -8,6 +8,7 @@ "include": [ "test/**/*", "rollup.config.mjs", - "vitest.config.js", + "vitest.config.ts", + "vitest.workspace.ts", ] } diff --git a/vitest.config.js b/vitest.config.js deleted file mode 100644 index 1c9a076f..00000000 --- a/vitest.config.js +++ /dev/null @@ -1,7 +0,0 @@ -import { defineConfig } from 'vitest/config'; - -export default defineConfig({ - test: { - environment: 'jsdom', - }, -}); diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 00000000..94ede10e --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,3 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({}); diff --git a/vitest.workspace.ts b/vitest.workspace.ts new file mode 100644 index 00000000..736729bb --- /dev/null +++ b/vitest.workspace.ts @@ -0,0 +1,11 @@ +import { defineWorkspace } from 'vitest/config'; + +export default defineWorkspace([ + { + test: { + environment: 'jsdom', + include: ['test/unit/**/*.test.ts'], + pool: 'forks', + }, + }, +]);