Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

vite.config.ts

24 lines603 Bytes

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 include: [`tests/**/*.test.ts`],
9 environment: `node`,
10 coverage: { enabled: true, provider: `istanbul`, include: [`src/**/*`] },
11 typecheck: {
12 enabled: true,
13 include: [`tests/**/*.test.ts`, `tests/**/*.test-d.ts`],
14 },
15 },
16})
17​
18export default mergeConfig(
19 config,
20 tanstackViteConfig({
21 entry: `./src/index.ts`,
22 srcDir: `./src`,
23 }),