mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Configure vitest
This commit is contained in:
parent
441778cfa1
commit
c488f78148
1 changed files with 20 additions and 0 deletions
20
vitest.config.mjs
Normal file
20
vitest.config.mjs
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
import { defineConfig } from 'vitest/config'
|
||||||
|
|
||||||
|
import astroConfig from './astro.config.mjs'
|
||||||
|
|
||||||
|
|
||||||
|
const vitestConfig = {
|
||||||
|
|
||||||
|
...astroConfig,
|
||||||
|
|
||||||
|
// Requires merging in astroConfig.vite
|
||||||
|
...astroConfig.vite,
|
||||||
|
|
||||||
|
test: {
|
||||||
|
setupFiles: 'tsconfig-paths/register'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// console.log( 'vitestConfig', vitestConfig )
|
||||||
|
|
||||||
|
export default defineConfig( vitestConfig )
|
||||||
Loading…
Add table
Add a link
Reference in a new issue