mirror of
https://github.com/block/goose.git
synced 2026-04-29 12:09:38 +00:00
22 lines
514 B
TypeScript
22 lines
514 B
TypeScript
/// <reference types="vitest" />
|
|
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
import { resolve } from 'node:path'
|
|
|
|
const cfg = {
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
css: true,
|
|
include: ['src/**/*.{test,spec}.{js,jsx,ts,tsx}'],
|
|
},
|
|
} satisfies Record<string, any>
|
|
|
|
export default defineConfig(cfg as any)
|