mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
22 lines
539 B
JavaScript
22 lines
539 B
JavaScript
import { defineConfig } from 'vitest/config'
|
|
import { fileURLToPath } from 'url'
|
|
import astroConfig from './astro.config.mjs'
|
|
|
|
const vitestConfig = {
|
|
...astroConfig,
|
|
...astroConfig.vite,
|
|
resolve: {
|
|
alias: {
|
|
'~': fileURLToPath(new URL('./', import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
setupFiles: 'tsconfig-paths/register',
|
|
// Add environment setup for tests
|
|
environment: 'node',
|
|
}
|
|
}
|
|
|
|
// console.log( 'vitestConfig', vitestConfig )
|
|
|
|
export default defineConfig(vitestConfig)
|