Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
at main 838 B view raw
1import { resolve } from 'path'; 2import { defineConfig } from 'vitest/config'; 3import tsconfigPaths from 'vite-tsconfig-paths'; 4 5export default defineConfig({ 6 resolve: { 7 alias: { 8 'preact/hooks': 9 __dirname + 10 '/packages/preact-urql/node_modules/preact/hooks/dist/hooks.js', 11 preact: 12 __dirname + '/packages/preact-urql/node_modules/preact/dist/preact.js', 13 }, 14 }, 15 plugins: [tsconfigPaths()], 16 test: { 17 globals: true, 18 setupFiles: [resolve(__dirname, 'scripts/vitest/setup.js')], 19 clearMocks: true, 20 exclude: [ 21 'packages/solid-urql/**', 22 '**/node_modules/**', 23 '**/dist/**', 24 '**/cypress/**', 25 '**/e2e-tests/**', 26 '**/.{idea,git,cache,output,temp}/**', 27 '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress}.config.*', 28 ], 29 }, 30});