mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-28 07:44:56 +00:00
code: vitest,nextjs,frontends (1 files)
This commit is contained in:
@@ -12,8 +12,17 @@ export default defineConfig({
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'json', 'html'],
|
||||
},
|
||||
deps: {
|
||||
// Use inline to avoid duplicate React instances in tests
|
||||
optimizer: {
|
||||
web: {
|
||||
include: ['@/fakemui', 'react', 'react-dom']
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
dedupe: ['react', 'react-dom'],
|
||||
alias: [
|
||||
// fakemui aliases must be first (more specific matches first)
|
||||
{ find: /^@\/fakemui\/(.+)$/, replacement: resolve(__dirname, '../../fakemui/$1') },
|
||||
|
||||
Reference in New Issue
Block a user