diff --git a/packages/next-urql/tsconfig.json b/packages/next-urql/tsconfig.json index 82cf2b7e61..38d2009cd3 100644 --- a/packages/next-urql/tsconfig.json +++ b/packages/next-urql/tsconfig.json @@ -3,7 +3,7 @@ "include": ["src"], "compilerOptions": { "baseUrl": "./", - "types": ["node", "vitest/globals", "react"], + "types": ["node", "vitest/globals", "react", "vitest"], "jsx": "react", "paths": { "urql": ["../../node_modules/urql/src"], diff --git a/packages/preact-urql/tsconfig.json b/packages/preact-urql/tsconfig.json index b1c8acca59..e1aed7b928 100644 --- a/packages/preact-urql/tsconfig.json +++ b/packages/preact-urql/tsconfig.json @@ -3,7 +3,7 @@ "include": ["src"], "compilerOptions": { "baseUrl": "./", - "types": ["node", "vitest/globals", "react"], + "types": ["node", "vitest/globals", "react", "vitest"], "jsx": "react", "paths": { "urql": ["../../node_modules/urql/src"], diff --git a/packages/react-urql/tsconfig.json b/packages/react-urql/tsconfig.json index b1c8acca59..e1aed7b928 100644 --- a/packages/react-urql/tsconfig.json +++ b/packages/react-urql/tsconfig.json @@ -3,7 +3,7 @@ "include": ["src"], "compilerOptions": { "baseUrl": "./", - "types": ["node", "vitest/globals", "react"], + "types": ["node", "vitest/globals", "react", "vitest"], "jsx": "react", "paths": { "urql": ["../../node_modules/urql/src"], diff --git a/packages/vue-urql/tsconfig.json b/packages/vue-urql/tsconfig.json index f0c0b13890..4cf91dd11e 100644 --- a/packages/vue-urql/tsconfig.json +++ b/packages/vue-urql/tsconfig.json @@ -3,7 +3,7 @@ "include": ["src"], "compilerOptions": { "baseUrl": "./", - "types": ["node", "vue", "vitest/globals"], + "types": ["node", "vue", "vitest/globals", "vitest"], "paths": { "urql": ["../../node_modules/urql/src"], "*-urql": ["../../node_modules/*-urql/src"], diff --git a/tsconfig.json b/tsconfig.json index 8dce7ca849..013b3b4b98 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "baseUrl": "./", - "types": ["node", "vitest/globals"], + "types": ["node", "vitest/globals", "vitest"], "paths": { "urql": ["packages/react-urql/src"], "*-urql": ["packages/*-urql/src"], diff --git a/vitest.config.ts b/vitest.config.ts index e9d3b58630..08c8c03a8a 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -9,6 +9,9 @@ export default defineConfig({ globals: true, setupFiles: ['./scripts/vitest/setup.js'], clearMocks: true, + alias: { + '@urql/*': 'node_modules/@urql/$1/src', + }, exclude: [ '**/node_modules/**', '**/dist/**',