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:
@@ -110,6 +110,7 @@ export default mergeConfig(
|
|||||||
"vite-plugin-node-polyfills/shims/buffer",
|
"vite-plugin-node-polyfills/shims/buffer",
|
||||||
"vite-plugin-node-polyfills/shims/process",
|
"vite-plugin-node-polyfills/shims/process",
|
||||||
"@vector-im/compound-design-tokens/assets/web/icons",
|
"@vector-im/compound-design-tokens/assets/web/icons",
|
||||||
|
"storybook/preview-api",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
@@ -56,6 +56,6 @@ export default defineConfig({
|
|||||||
reporters,
|
reporters,
|
||||||
pool: "threads",
|
pool: "threads",
|
||||||
globals: false,
|
globals: false,
|
||||||
include: ["src/**/*.test.ts"],
|
include: ["src/**/*.test.{ts,tsx}"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user