mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Updated vite config to allow sibling test files
This commit is contained in:
parent
fb71b03c28
commit
63261d7d88
1 changed files with 9 additions and 1 deletions
|
@ -5,6 +5,14 @@ import {resolve} from 'path';
|
||||||
export default (function viteConfig() {
|
export default (function viteConfig() {
|
||||||
return adminXViteConfig({
|
return adminXViteConfig({
|
||||||
packageName: pkg.name,
|
packageName: pkg.name,
|
||||||
entry: resolve(__dirname, 'src/index.tsx')
|
entry: resolve(__dirname, 'src/index.tsx'),
|
||||||
|
overrides: {
|
||||||
|
test: {
|
||||||
|
include: [
|
||||||
|
'./test/unit/**/*',
|
||||||
|
'./src/**/*.test.ts'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue