vitest.config.mts
Rama main · réplica de lectura del repositorio original.
import { defineConfig } from 'vitest/config'
import { fileURLToPath } from 'node:url'
export default defineConfig({
resolve: {
// Same alias as tsconfig.json, so API routes can be imported by tests.
alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) },
},
test: {
include: ['src/**/*.test.{ts,tsx}', 'packages/**/*.test.mjs'],
},
})