Skip to content

Commit 6f6dc94

Browse files
committed
Support client code in tests
1 parent 62ab531 commit 6f6dc94

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

vitest.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
import { defaultServerConditions, defineConfig } from "vite";
1+
import {
2+
defaultClientConditions,
3+
defaultServerConditions,
4+
defineConfig,
5+
} from "vite";
26

37
export default defineConfig({
48
// resolve webstudio condition in tests
9+
resolve: {
10+
conditions: ["webstudio", ...defaultClientConditions],
11+
},
512
ssr: {
613
resolve: {
714
conditions: ["webstudio", ...defaultServerConditions],

0 commit comments

Comments
 (0)