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

vite.config.ts

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