Open History to see the last commit
1import { defineConfig, mergeConfig } from 'vitest/config'
2import { tanstackViteConfig } from '@tanstack/vite-config'
3import packageJson from './package.json'
4
5const config = defineConfig({
6 test: {
7 name: packageJson.name,
8 dir: './',
9 watch: false,
10 globals: true,
11 environment: 'node',
12 include: ['tests/**/*.test.ts'],
13 passWithNoTests: true,
14 },
15})
16
17export default mergeConfig(
18 config,
19 tanstackViteConfig({
20 entry: ['./src/index.ts'],
21 srcDir: './src',
22 cjs: false,
23 }),
24)