Add initial project files
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: [
|
||||
{
|
||||
find: /^#(.*)$/,
|
||||
replacement: fileURLToPath(new URL('./$1', import.meta.url))
|
||||
},
|
||||
{
|
||||
find: 'server-only',
|
||||
replacement: fileURLToPath(new URL('./tests/stubs/server-only.ts', import.meta.url))
|
||||
}
|
||||
]
|
||||
},
|
||||
esbuild: {
|
||||
jsx: 'automatic'
|
||||
},
|
||||
test: {
|
||||
environment: 'node',
|
||||
include: ['tests/**/*.test.ts']
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user