Skip to content

Commit 56b3696

Browse files
Exclude nested node_modules in test run.
Avoid running tests in node_modules now present under the nested 'site' workspace. An alternative would be to fully define vitest 'projects/workspaces' configuration, but that feels unnecessary for now.
1 parent b828b00 commit 56b3696

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

vitest.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ import solidPlugin from 'vite-plugin-solid';
44
export default defineConfig({
55
plugins: [solidPlugin()],
66
test: {
7-
environment: 'jsdom',
7+
environment: "jsdom",
88
globals: true,
9-
setupFiles: ['./vitest.setup.ts'],
9+
setupFiles: ["./vitest.setup.ts"],
1010
server: {
1111
deps: {
1212
inline: [/solid-js/],
1313
},
1414
},
15-
exclude: ['tests/e2e/**', 'node_modules/**'],
15+
exclude: ["tests/e2e/**", "**/node_modules/**"],
1616
},
1717
resolve: {
18-
conditions: ['development', 'browser'],
18+
conditions: ["development", "browser"],
1919
},
2020
});

0 commit comments

Comments
 (0)