UNPKG

@tanstack/react-query

Version:

Hooks for managing, caching and syncing asynchronous and remote data in React

22 lines (19 loc) 558 B
import { defineConfig } from 'vitest/config' import tsconfigPaths from 'vite-tsconfig-paths' import { dynamicAliases } from './root.vite.config' import packageJson from './package.json' export default defineConfig({ plugins: [tsconfigPaths({ ignoreConfigErrors: true })], resolve: { alias: dynamicAliases, }, test: { name: packageJson.name, dir: './src', watch: false, globals: true, coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] }, typecheck: { enabled: true }, restoreMocks: true, }, })