Skip to content

Commit 3c5eec6

Browse files
committed
test: exclude test/a11y folder from Vitest to avoid running Playwright tests
1 parent 7cfd45b commit 3c5eec6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vitest.config.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/// <reference types="vitest" />
2+
import { defineConfig, configDefaults } from 'vitest/config';
23
import { getViteConfig } from "astro/config";
34
import preact from "@preact/preset-vite";
45

5-
export default getViteConfig({
6+
export default getViteConfig(defineConfig({
67
// needed to ensure react 3rd party libraries work with preact
78
plugins: [preact()],
89
resolve: {
@@ -12,5 +13,9 @@ export default getViteConfig({
1213
/* for example, use global to avoid globals imports (describe, test, expect): */
1314
// globals: true,
1415
environment: "jsdom",
16+
exclude: [
17+
...configDefaults.exclude,
18+
'test/a11y/**',
19+
],
1520
},
16-
});
21+
}));

0 commit comments

Comments
 (0)