jira-ai-fixer/frontend/node_modules/@tanstack/react-query/build/query-codemods/vite.config.ts

31 lines
674 B
TypeScript

import { defineConfig } from 'vitest/config'
import packageJson from './package.json'
export default defineConfig({
// fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
resolve: {
conditions: ['@tanstack/custom-condition'],
},
environments: {
ssr: {
resolve: {
conditions: ['@tanstack/custom-condition'],
},
},
},
test: {
name: packageJson.name,
dir: './src',
watch: false,
globals: true,
coverage: {
enabled: true,
provider: 'istanbul',
include: ['src/**/*.{js,ts,cjs,mjs,jsx,tsx}'],
},
typecheck: { enabled: true },
restoreMocks: true,
},
})