Include tsx test files in common vite config (#33342)

* Include tsx test files in common vite config

Otherwise we miss a bunch of the shared component tests

* Add storybook/preview-api to optimizeDeps

which is what vitest is telling me to do, which will hopefully stop
it flaking out.
This commit is contained in:
David Baker
2026-05-01 10:58:11 +01:00
committed by GitHub
parent 5e935207c5
commit 990efa20db
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -56,6 +56,6 @@ export default defineConfig({
reporters,
pool: "threads",
globals: false,
include: ["src/**/*.test.ts"],
include: ["src/**/*.test.{ts,tsx}"],
},
});