Add migration script and work on tests
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { defineConfig, mergeConfig } from 'vitest/config'
|
||||
import viteConfig from './vite.config'
|
||||
|
||||
export default mergeConfig(
|
||||
viteConfig,
|
||||
defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./vitest.setup.ts'],
|
||||
include: ['src/**/*.{test,spec}.{ts,tsx}', 'tests/**/*.{test,spec}.{ts,tsx}'],
|
||||
exclude: ['**/tests/e2e/**', '**/node_modules/**'],
|
||||
reporters: ['dot'],
|
||||
},
|
||||
})
|
||||
)
|
||||
Reference in New Issue
Block a user