BookMind / frontend /vitest.config.js
BookMind Deployer
Deploy BookMind to HF Spaces - exclude large files
806d445
Raw History Blame Contribute Delete
651 Bytes
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
esbuild: {
loader: 'jsx',
include: /src\/.*\.js$/,
exclude: [],
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.js',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: ['node_modules/', 'src/setupTests.js'],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
})