mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
update: upgrade to astro 5
This commit is contained in:
parent
0a85f4d48d
commit
c1d79f4430
4 changed files with 2871 additions and 1697 deletions
|
|
@ -1,21 +1,22 @@
|
|||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
import { fileURLToPath } from 'url'
|
||||
import astroConfig from './astro.config.mjs'
|
||||
|
||||
|
||||
const vitestConfig = {
|
||||
|
||||
...astroConfig,
|
||||
|
||||
// Requires merging in astroConfig.vite
|
||||
...astroConfig.vite,
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
'~': fileURLToPath(new URL('./', import.meta.url)),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
// testTimeout: 60 * 1000,
|
||||
setupFiles: 'tsconfig-paths/register'
|
||||
setupFiles: 'tsconfig-paths/register',
|
||||
// Add environment setup for tests
|
||||
environment: 'node',
|
||||
}
|
||||
}
|
||||
|
||||
// console.log( 'vitestConfig', vitestConfig )
|
||||
|
||||
export default defineConfig( vitestConfig )
|
||||
export default defineConfig(vitestConfig)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue