mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2025-12-22 09:37:54 +00:00
29 lines
708 B
TypeScript
29 lines
708 B
TypeScript
import react from '@vitejs/plugin-react'
|
|
/// <reference types="vitest" />
|
|
import { defineConfig } from 'vite'
|
|
import svgr from 'vite-plugin-svgr'
|
|
|
|
import type { UserConfig as VitestUserConfigInterface } from 'vitest/config'
|
|
|
|
const vitestConfig: VitestUserConfigInterface = {
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: './src/test/setup.ts',
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text'],
|
|
},
|
|
include: ['./src/**/*.test.?(c|m)[jt]s?(x)'],
|
|
logHeapUsage: true,
|
|
sequence: {
|
|
hooks: 'list',
|
|
},
|
|
},
|
|
}
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default defineConfig({
|
|
plugins: [react(), svgr()],
|
|
test: vitestConfig.test,
|
|
})
|