Updated vite config to allow sibling test files

This commit is contained in:
Fabien O'Carroll 2024-07-22 14:43:49 +07:00 committed by Fabien 'egg' O'Carroll
parent fb71b03c28
commit 63261d7d88

View File

@ -5,6 +5,14 @@ import {resolve} from 'path';
export default (function viteConfig() {
return adminXViteConfig({
packageName: pkg.name,
entry: resolve(__dirname, 'src/index.tsx')
entry: resolve(__dirname, 'src/index.tsx'),
overrides: {
test: {
include: [
'./test/unit/**/*',
'./src/**/*.test.ts'
]
}
}
});
});