Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Jul 18, 2024
1 parent 6d5916c commit f7e7147
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
4 changes: 4 additions & 0 deletions vitest.root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ import { type UserConfig, defineConfig } from "vitest/config";
export default defineConfig({
test: {
watch: false,
isolate: false,
typecheck: {
enabled: true,
},
},
}) as UserConfig;
23 changes: 1 addition & 22 deletions vitest.workspace.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
import { defineWorkspace } from "vitest/config";

export default defineWorkspace([
"packages/*",
{
extends: "./vitest.root.ts",
test: {
include: ["**/*.test.ts"],
isolate: false,
},
},
{
extends: "./vitest.root.ts",
test: {
typecheck: {
enabled: true,
ignoreSourceErrors: true,
include: ["**/*.test.ts"],
},
},
},
]) as ReturnType<typeof defineWorkspace>;
export default ["packages/*"] as string[];

0 comments on commit f7e7147

Please sign in to comment.