From 7830807d8f46e11e1d14cf03da773e4e707403d3 Mon Sep 17 00:00:00 2001 From: Stefan Maric Date: Sun, 9 Jun 2024 12:32:29 +0200 Subject: [PATCH] Add per-package vitest config and test script --- exchanges/auth/package.json | 5 +- exchanges/auth/vitest.config.ts | 4 + exchanges/context/package.json | 5 +- exchanges/context/vitest.config.ts | 4 + exchanges/execute/package.json | 5 +- exchanges/execute/vitest.config.ts | 4 + exchanges/graphcache/package.json | 5 +- exchanges/graphcache/vitest.config.ts | 4 + exchanges/persisted/package.json | 5 +- exchanges/persisted/vitest.config.ts | 4 + exchanges/populate/package.json | 5 +- exchanges/populate/vitest.config.ts | 4 + exchanges/refocus/package.json | 7 +- exchanges/refocus/vitest.config.ts | 4 + exchanges/request-policy/package.json | 5 +- exchanges/request-policy/vitest.config.ts | 4 + exchanges/retry/package.json | 5 +- exchanges/retry/vitest.config.ts | 4 + package.json | 2 +- packages/core/package.json | 5 +- packages/core/vitest.config.ts | 4 + packages/introspection/package.json | 2 - packages/next-urql/vitest.config.ts | 4 + packages/preact-urql/package.json | 7 +- packages/preact-urql/vitest.config.ts | 4 + packages/react-urql/package.json | 5 +- packages/react-urql/vitest.config.ts | 4 + packages/solid-urql/bak.vitest.config.ts | 12 + packages/solid-urql/package.json | 3 +- .../solid-urql/src/createMutation.test.ts | 2 + packages/solid-urql/src/createQuery.test.tsx | 2 + .../solid-urql/src/createSubscription.test.ts | 2 + packages/solid-urql/src/suspense.test.tsx | 2 + packages/solid-urql/vitest.config.ts | 16 +- packages/storage-rn/package.json | 9 +- packages/storage-rn/vitest.config.ts | 4 + packages/svelte-urql/package.json | 5 +- packages/svelte-urql/vitest.config.ts | 4 + packages/vue-urql/package.json | 3 +- packages/vue-urql/vitest.config.ts | 4 + pnpm-lock.yaml | 357 ++++-------------- vitest.config.ts | 1 + 42 files changed, 208 insertions(+), 338 deletions(-) create mode 100644 exchanges/auth/vitest.config.ts create mode 100644 exchanges/context/vitest.config.ts create mode 100644 exchanges/execute/vitest.config.ts create mode 100644 exchanges/graphcache/vitest.config.ts create mode 100644 exchanges/persisted/vitest.config.ts create mode 100644 exchanges/populate/vitest.config.ts create mode 100644 exchanges/refocus/vitest.config.ts create mode 100644 exchanges/request-policy/vitest.config.ts create mode 100644 exchanges/retry/vitest.config.ts create mode 100644 packages/core/vitest.config.ts create mode 100644 packages/next-urql/vitest.config.ts create mode 100644 packages/preact-urql/vitest.config.ts create mode 100644 packages/react-urql/vitest.config.ts create mode 100644 packages/solid-urql/bak.vitest.config.ts create mode 100644 packages/storage-rn/vitest.config.ts create mode 100644 packages/svelte-urql/vitest.config.ts create mode 100644 packages/vue-urql/vitest.config.ts diff --git a/exchanges/auth/package.json b/exchanges/auth/package.json index bb9ef542d0..e5588eb4e3 100644 --- a/exchanges/auth/package.json +++ b/exchanges/auth/package.json @@ -40,7 +40,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist extras", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -57,7 +57,8 @@ }, "devDependencies": { "@urql/core": "workspace:*", - "graphql": "^16.0.0" + "graphql": "^16.0.0", + "vitest": "^0.30.1" }, "publishConfig": { "access": "public", diff --git a/exchanges/auth/vitest.config.ts b/exchanges/auth/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/exchanges/auth/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/exchanges/context/package.json b/exchanges/context/package.json index 3b3ae0b659..b917caf54c 100644 --- a/exchanges/context/package.json +++ b/exchanges/context/package.json @@ -39,7 +39,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist extras", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -56,7 +56,8 @@ }, "devDependencies": { "@urql/core": "workspace:*", - "graphql": "^16.0.0" + "graphql": "^16.0.0", + "vitest": "^0.30.1" }, "publishConfig": { "access": "public", diff --git a/exchanges/context/vitest.config.ts b/exchanges/context/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/exchanges/context/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/exchanges/execute/package.json b/exchanges/execute/package.json index 963276da6b..a363a5dfd6 100644 --- a/exchanges/execute/package.json +++ b/exchanges/execute/package.json @@ -40,7 +40,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist extras", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -58,7 +58,8 @@ }, "devDependencies": { "@urql/core": "workspace:*", - "graphql": "^16.0.0" + "graphql": "^16.0.0", + "vitest": "^0.30.1" }, "publishConfig": { "access": "public", diff --git a/exchanges/execute/vitest.config.ts b/exchanges/execute/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/exchanges/execute/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/exchanges/graphcache/package.json b/exchanges/graphcache/package.json index 2282cfe9a8..680bb6822e 100644 --- a/exchanges/graphcache/package.json +++ b/exchanges/graphcache/package.json @@ -54,7 +54,7 @@ "default-storage/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist extras", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -79,7 +79,8 @@ "graphql": "^16.6.0", "react": "^17.0.1", "react-dom": "^17.0.1", - "urql": "workspace:*" + "urql": "workspace:*", + "vitest": "^0.30.1" }, "publishConfig": { "access": "public", diff --git a/exchanges/graphcache/vitest.config.ts b/exchanges/graphcache/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/exchanges/graphcache/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/exchanges/persisted/package.json b/exchanges/persisted/package.json index d40a652f84..002457d9e9 100644 --- a/exchanges/persisted/package.json +++ b/exchanges/persisted/package.json @@ -38,7 +38,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist extras", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -55,7 +55,8 @@ }, "devDependencies": { "@urql/core": "workspace:*", - "graphql": "^16.0.0" + "graphql": "^16.0.0", + "vitest": "^0.30.1" }, "publishConfig": { "access": "public", diff --git a/exchanges/persisted/vitest.config.ts b/exchanges/persisted/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/exchanges/persisted/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/exchanges/populate/package.json b/exchanges/populate/package.json index 3c60ab7dea..5f5cb519ef 100644 --- a/exchanges/populate/package.json +++ b/exchanges/populate/package.json @@ -38,7 +38,7 @@ "extras/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist extras", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -56,7 +56,8 @@ }, "devDependencies": { "@urql/core": "workspace:*", - "graphql": "^16.0.0" + "graphql": "^16.0.0", + "vitest": "^0.30.1" }, "publishConfig": { "access": "public", diff --git a/exchanges/populate/vitest.config.ts b/exchanges/populate/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/exchanges/populate/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/exchanges/refocus/package.json b/exchanges/refocus/package.json index 9a83208536..23b1531844 100644 --- a/exchanges/refocus/package.json +++ b/exchanges/refocus/package.json @@ -40,7 +40,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -49,9 +49,10 @@ "prepublishOnly": "run-s clean build" }, "devDependencies": { - "@urql/core": "workspace:*", "@types/react": "^17.0.4", - "graphql": "^16.0.0" + "@urql/core": "workspace:*", + "graphql": "^16.0.0", + "vitest": "^0.30.1" }, "peerDependencies": { "@urql/core": "^5.0.0" diff --git a/exchanges/refocus/vitest.config.ts b/exchanges/refocus/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/exchanges/refocus/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/exchanges/request-policy/package.json b/exchanges/request-policy/package.json index c2118e04be..cc2e520473 100644 --- a/exchanges/request-policy/package.json +++ b/exchanges/request-policy/package.json @@ -39,7 +39,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -49,7 +49,8 @@ }, "devDependencies": { "@urql/core": "workspace:*", - "graphql": "^16.0.0" + "graphql": "^16.0.0", + "vitest": "^0.30.1" }, "peerDependencies": { "@urql/core": "^5.0.0" diff --git a/exchanges/request-policy/vitest.config.ts b/exchanges/request-policy/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/exchanges/request-policy/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/exchanges/retry/package.json b/exchanges/retry/package.json index 59a1e00a7a..138c339eb0 100644 --- a/exchanges/retry/package.json +++ b/exchanges/retry/package.json @@ -39,7 +39,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -49,7 +49,8 @@ }, "devDependencies": { "@urql/core": "workspace:*", - "graphql": "^16.0.0" + "graphql": "^16.0.0", + "vitest": "^0.30.1" }, "peerDependencies": { "@urql/core": "^5.0.0" diff --git a/exchanges/retry/vitest.config.ts b/exchanges/retry/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/exchanges/retry/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/package.json b/package.json index 758fdab541..a4a429cb74 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "scripts": { - "test": "vitest", + "test": "test -z $CI && vitest || pnpm -r --parallel run test run", "check": "tsc", "lint": "eslint --ext=js,jsx,ts,tsx .", "build": "node ./scripts/actions/build-all.mjs", diff --git a/packages/core/package.json b/packages/core/package.json index 6a16c5abf1..a69819a44d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -45,7 +45,7 @@ "internal/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -61,5 +61,8 @@ "publishConfig": { "access": "public", "provenance": true + }, + "devDependencies": { + "vitest": "^0.30.1" } } diff --git a/packages/core/vitest.config.ts b/packages/core/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/packages/core/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/packages/introspection/package.json b/packages/introspection/package.json index e992937b9f..06d7d21bbf 100644 --- a/packages/introspection/package.json +++ b/packages/introspection/package.json @@ -37,7 +37,6 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", "clean": "rimraf dist", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -51,7 +50,6 @@ "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" }, - "dependencies": {}, "publishConfig": { "access": "public", "provenance": true diff --git a/packages/next-urql/vitest.config.ts b/packages/next-urql/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/packages/next-urql/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/packages/preact-urql/package.json b/packages/preact-urql/package.json index dede80385d..8ba183e667 100644 --- a/packages/preact-urql/package.json +++ b/packages/preact-urql/package.json @@ -40,7 +40,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -49,10 +49,11 @@ "prepublishOnly": "run-s clean build" }, "devDependencies": { - "@urql/core": "workspace:*", "@testing-library/preact": "^2.0.0", + "@urql/core": "workspace:*", "graphql": "^16.0.0", - "preact": "^10.13.0" + "preact": "^10.13.0", + "vitest": "^0.30.1" }, "peerDependencies": { "@urql/core": "^5.0.0", diff --git a/packages/preact-urql/vitest.config.ts b/packages/preact-urql/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/packages/preact-urql/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/packages/react-urql/package.json b/packages/react-urql/package.json index 65133fd2ec..48944b13bd 100644 --- a/packages/react-urql/package.json +++ b/packages/react-urql/package.json @@ -32,7 +32,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -55,7 +55,8 @@ "react-is": "^17.0.1", "react-ssr-prepass": "^1.1.2", "react-test-renderer": "^17.0.1", - "vite": "^3.2.4" + "vite": "^3.2.4", + "vitest": "^0.30.1" }, "peerDependencies": { "@urql/core": "^5.0.0", diff --git a/packages/react-urql/vitest.config.ts b/packages/react-urql/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/packages/react-urql/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/packages/solid-urql/bak.vitest.config.ts b/packages/solid-urql/bak.vitest.config.ts new file mode 100644 index 0000000000..d6519854a8 --- /dev/null +++ b/packages/solid-urql/bak.vitest.config.ts @@ -0,0 +1,12 @@ +import { resolve } from 'path'; +import { defineProject } from 'vitest/config'; +import solidPlugin from 'vite-plugin-solid'; +import tsconfigPaths from 'vite-tsconfig-paths'; + +export default defineProject({ + extends: '../../vitest.config.ts', + plugins: [ + tsconfigPaths({ root: resolve(__dirname, '../../') }), + solidPlugin({ hot: false }), + ], +}); diff --git a/packages/solid-urql/package.json b/packages/solid-urql/package.json index 34384e9679..8c67edcf8b 100644 --- a/packages/solid-urql/package.json +++ b/packages/solid-urql/package.json @@ -50,13 +50,12 @@ }, "devDependencies": { "@solidjs/testing-library": "^0.8.2", - "@testing-library/jest-dom": "^5.16.5", "@urql/core": "workspace:*", "graphql": "^16.0.0", "jsdom": "^22.1.0", "vite-plugin-solid": "^2.7.0", "vite-tsconfig-paths": "^4.2.0", - "vitest": "^0.32.2" + "vitest": "^0.30.1" }, "peerDependencies": { "@urql/core": "^5.0.0", diff --git a/packages/solid-urql/src/createMutation.test.ts b/packages/solid-urql/src/createMutation.test.ts index 48b051ab32..110e28b0be 100644 --- a/packages/solid-urql/src/createMutation.test.ts +++ b/packages/solid-urql/src/createMutation.test.ts @@ -1,3 +1,5 @@ +// @vitest-environment jsdom + import { testEffect } from '@solidjs/testing-library'; import { expect, it, describe, vi } from 'vitest'; import { CreateMutationState, createMutation } from './createMutation'; diff --git a/packages/solid-urql/src/createQuery.test.tsx b/packages/solid-urql/src/createQuery.test.tsx index f02a9b69f0..d0e7903ef2 100644 --- a/packages/solid-urql/src/createQuery.test.tsx +++ b/packages/solid-urql/src/createQuery.test.tsx @@ -1,3 +1,5 @@ +// @vitest-environment jsdom + import { expect, it, describe, vi } from 'vitest'; import { CreateQueryState, createQuery } from './createQuery'; import { renderHook, testEffect } from '@solidjs/testing-library'; diff --git a/packages/solid-urql/src/createSubscription.test.ts b/packages/solid-urql/src/createSubscription.test.ts index 74bf3d4429..d79ea91f76 100644 --- a/packages/solid-urql/src/createSubscription.test.ts +++ b/packages/solid-urql/src/createSubscription.test.ts @@ -1,3 +1,5 @@ +// @vitest-environment jsdom + import { renderHook, testEffect } from '@solidjs/testing-library'; import { OperationResult, diff --git a/packages/solid-urql/src/suspense.test.tsx b/packages/solid-urql/src/suspense.test.tsx index 556970a2a8..3be0bd2020 100644 --- a/packages/solid-urql/src/suspense.test.tsx +++ b/packages/solid-urql/src/suspense.test.tsx @@ -1,3 +1,5 @@ +// @vitest-environment jsdom + import { describe, it, vi } from 'vitest'; import { OperationResult, diff --git a/packages/solid-urql/vitest.config.ts b/packages/solid-urql/vitest.config.ts index d28545e0dc..55b1b9e774 100644 --- a/packages/solid-urql/vitest.config.ts +++ b/packages/solid-urql/vitest.config.ts @@ -1,13 +1,7 @@ -import { defineConfig, mergeConfig } from 'vite'; +import { mergeConfig } from 'vitest/config'; import solidPlugin from 'vite-plugin-solid'; -import rootConfig from '../../vitest.config'; +import baseConfig from '../../vitest.config'; -export default mergeConfig( - rootConfig, - defineConfig({ - plugins: [solidPlugin()], - test: { - globals: true, - }, - }) -); +export default mergeConfig(baseConfig, { + plugins: [solidPlugin({ hot: false })], +}); diff --git a/packages/storage-rn/package.json b/packages/storage-rn/package.json index 693d790c26..1b2c506361 100644 --- a/packages/storage-rn/package.json +++ b/packages/storage-rn/package.json @@ -49,15 +49,16 @@ "prepublishOnly": "run-s clean build" }, "peerDependencies": { - "@urql/exchange-graphcache": ">=5.0.0", "@react-native-async-storage/async-storage": "^1.15.5", - "@react-native-community/netinfo": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^11.0.0" + "@react-native-community/netinfo": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^11.0.0", + "@urql/exchange-graphcache": ">=5.0.0" }, "devDependencies": { + "@react-native-async-storage/async-storage": "^1.21.0", + "@react-native-community/netinfo": "^11.2.1", "@urql/core": "workspace:*", "@urql/exchange-graphcache": "workspace:*", - "@react-native-async-storage/async-storage": "^1.21.0", - "@react-native-community/netinfo": "^11.2.1" + "vitest": "^0.30.1" }, "publishConfig": { "access": "public", diff --git a/packages/storage-rn/vitest.config.ts b/packages/storage-rn/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/packages/storage-rn/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/packages/svelte-urql/package.json b/packages/svelte-urql/package.json index 0a934ddd6e..1c32fcb6e7 100644 --- a/packages/svelte-urql/package.json +++ b/packages/svelte-urql/package.json @@ -40,7 +40,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -59,7 +59,8 @@ "devDependencies": { "@urql/core": "workspace:*", "graphql": "^16.0.0", - "svelte": "^3.20.0" + "svelte": "^3.20.0", + "vitest": "^0.30.1" }, "publishConfig": { "access": "public", diff --git a/packages/svelte-urql/vitest.config.ts b/packages/svelte-urql/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/packages/svelte-urql/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/packages/vue-urql/package.json b/packages/vue-urql/package.json index 2ae56cda53..97e109eb13 100644 --- a/packages/vue-urql/package.json +++ b/packages/vue-urql/package.json @@ -40,7 +40,7 @@ "dist/" ], "scripts": { - "test": "vitest --config ../../vitest.config.ts", + "test": "vitest", "clean": "rimraf dist", "check": "tsc --noEmit", "lint": "eslint --ext=js,jsx,ts,tsx .", @@ -52,6 +52,7 @@ "@urql/core": "workspace:*", "@vue/test-utils": "^2.3.0", "graphql": "^16.0.0", + "vitest": "^0.30.1", "vue": "^3.2.47" }, "peerDependencies": { diff --git a/packages/vue-urql/vitest.config.ts b/packages/vue-urql/vitest.config.ts new file mode 100644 index 0000000000..6561524839 --- /dev/null +++ b/packages/vue-urql/vitest.config.ts @@ -0,0 +1,4 @@ +import { mergeConfig } from 'vitest/config'; +import baseConfig from '../../vitest.config'; + +export default mergeConfig(baseConfig, {}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7c1d66dccf..6f286c779f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -194,6 +194,9 @@ importers: graphql: specifier: ^16.6.0 version: 16.6.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) exchanges/context: dependencies: @@ -207,6 +210,9 @@ importers: graphql: specifier: ^16.6.0 version: 16.6.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) exchanges/execute: dependencies: @@ -220,6 +226,9 @@ importers: graphql: specifier: ^16.6.0 version: 16.6.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) exchanges/graphcache: dependencies: @@ -257,6 +266,9 @@ importers: urql: specifier: workspace:* version: link:../../packages/react-urql + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) exchanges/persisted: dependencies: @@ -270,6 +282,9 @@ importers: graphql: specifier: ^16.6.0 version: 16.6.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) exchanges/populate: dependencies: @@ -283,6 +298,9 @@ importers: graphql: specifier: ^16.6.0 version: 16.6.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) exchanges/refocus: dependencies: @@ -299,6 +317,9 @@ importers: graphql: specifier: ^16.6.0 version: 16.6.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) exchanges/request-policy: dependencies: @@ -312,6 +333,9 @@ importers: graphql: specifier: ^16.6.0 version: 16.6.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) exchanges/retry: dependencies: @@ -325,6 +349,9 @@ importers: graphql: specifier: ^16.6.0 version: 16.6.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) packages/core: dependencies: @@ -334,6 +361,10 @@ importers: wonka: specifier: ^6.3.2 version: 6.3.2 + devDependencies: + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) packages/introspection: devDependencies: @@ -386,6 +417,9 @@ importers: preact: specifier: ^10.13.0 version: 10.13.1 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) packages/react-urql: dependencies: @@ -438,6 +472,9 @@ importers: vite: specifier: ^3.2.4 version: 3.2.5(@types/node@18.16.3)(terser@5.17.1) + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) packages/site: dependencies: @@ -557,9 +594,6 @@ importers: '@solidjs/testing-library': specifier: ^0.8.2 version: 0.8.8(solid-js@1.8.17) - '@testing-library/jest-dom': - specifier: ^5.16.5 - version: 5.17.0 graphql: specifier: ^16.6.0 version: 16.6.0 @@ -568,13 +602,13 @@ importers: version: 22.1.0 vite-plugin-solid: specifier: ^2.7.0 - version: 2.10.2(@testing-library/jest-dom@5.17.0)(solid-js@1.8.17)(vite@3.2.5) + version: 2.10.2(solid-js@1.8.17)(vite@3.2.5) vite-tsconfig-paths: specifier: ^4.2.0 version: 4.2.0(typescript@5.1.6)(vite@3.2.5) vitest: - specifier: ^0.32.2 - version: 0.32.4(jsdom@22.1.0)(terser@5.17.1) + specifier: ^0.30.1 + version: 0.30.1(jsdom@22.1.0)(terser@5.17.1) packages/storage-rn: devDependencies: @@ -590,6 +624,9 @@ importers: '@urql/exchange-graphcache': specifier: workspace:* version: link:../../exchanges/graphcache + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) packages/svelte-urql: dependencies: @@ -606,6 +643,9 @@ importers: svelte: specifier: ^3.20.0 version: 3.37.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) packages/vue-urql: dependencies: @@ -622,6 +662,9 @@ importers: graphql: specifier: ^16.6.0 version: 16.6.0 + vitest: + specifier: ^0.30.1 + version: 0.30.1(jsdom@21.1.1)(terser@5.17.1) vue: specifier: ^3.2.47 version: 3.2.47 @@ -675,10 +718,6 @@ packages: dependencies: tunnel: 0.0.6 - /@adobe/css-tools@4.4.0: - resolution: {integrity: sha512-Ff9+ksdQQB3rMncgqDK78uLznstjyfIf2Arnh22pW8kBpLs6rpKDwgnZT46hin5Hl1WzazzK64DOrhSwYpS7bQ==} - dev: true - /@ampproject/remapping@2.2.0: resolution: {integrity: sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==} engines: {node: '>=6.0.0'} @@ -2443,20 +2482,6 @@ packages: resolution: {integrity: sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==} dev: true - /@jest/expect-utils@29.7.0: - resolution: {integrity: sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - jest-get-type: 29.6.3 - dev: true - - /@jest/schemas@29.6.3: - resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - '@sinclair/typebox': 0.27.8 - dev: true - /@jest/types@26.6.2: resolution: {integrity: sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==} engines: {node: '>= 10.14.2'} @@ -2468,18 +2493,6 @@ packages: chalk: 4.1.2 dev: true - /@jest/types@29.6.3: - resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - '@jest/schemas': 29.6.3 - '@types/istanbul-lib-coverage': 2.0.3 - '@types/istanbul-reports': 3.0.0 - '@types/node': 18.16.3 - '@types/yargs': 17.0.32 - chalk: 4.1.2 - dev: true - /@jridgewell/gen-mapping@0.1.1: resolution: {integrity: sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==} engines: {node: '>=6.0.0'} @@ -3162,10 +3175,6 @@ packages: engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dev: true - /@sinclair/typebox@0.27.8: - resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} - dev: true - /@sindresorhus/is@0.7.0: resolution: {integrity: sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==} engines: {node: '>=4'} @@ -3218,21 +3227,6 @@ packages: pretty-format: 26.6.2 dev: true - /@testing-library/jest-dom@5.17.0: - resolution: {integrity: sha512-ynmNeT7asXyH3aSVv4vvX4Rb+0qjOhdNHnO/3vuZNqPmhDpV/+rCSGwQ7bLcmU2cJ4dvoheIO85LQj0IbJHEtg==} - engines: {node: '>=8', npm: '>=6', yarn: '>=1'} - dependencies: - '@adobe/css-tools': 4.4.0 - '@babel/runtime': 7.22.5 - '@types/testing-library__jest-dom': 5.14.9 - aria-query: 5.3.0 - chalk: 3.0.0 - css.escape: 1.5.1 - dom-accessibility-api: 0.5.16 - lodash: 4.17.21 - redent: 3.0.0 - dev: true - /@testing-library/preact@2.0.1(preact@10.13.1): resolution: {integrity: sha512-79kwVOY+3caoLgaPbiPzikjgY0Aya7Fc7TvGtR1upCnz2wrtmPDnN2t9vO7I7vDP2zoA+feSwOH5Q0BFErhaaQ==} engines: {node: '>= 10'} @@ -3331,7 +3325,7 @@ packages: /@types/chai-subset@1.3.3: resolution: {integrity: sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==} dependencies: - '@types/chai': 4.3.4 + '@types/chai': 4.3.16 dev: true /@types/chai@4.3.16: @@ -3379,13 +3373,6 @@ packages: '@types/istanbul-lib-report': 3.0.0 dev: true - /@types/jest@29.5.12: - resolution: {integrity: sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==} - dependencies: - expect: 29.7.0 - pretty-format: 29.7.0 - dev: true - /@types/json-schema@7.0.12: resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} @@ -3479,16 +3466,6 @@ packages: resolution: {integrity: sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==} dev: true - /@types/stack-utils@2.0.3: - resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} - dev: true - - /@types/testing-library__jest-dom@5.14.9: - resolution: {integrity: sha512-FSYhIjFlfOpGSRyVoMBMuS3ws5ehFQODymf3vlI7U1K8c7PHwWwFY7VREfmsuzHSOnoKs/9/Y983ayOs7eRzqw==} - dependencies: - '@types/jest': 29.5.12 - dev: true - /@types/unist@2.0.3: resolution: {integrity: sha512-FvUupuM3rlRsRtCN+fDudtmytGO6iHJuuRKS1Ss0pG5z8oX0diNEw94UEL7hgDbpN94rgaK5R7sWm6RrSkZuAQ==} @@ -3502,12 +3479,6 @@ packages: '@types/yargs-parser': 20.2.0 dev: true - /@types/yargs@17.0.32: - resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==} - dependencies: - '@types/yargs-parser': 20.2.0 - dev: true - /@types/yauzl@2.10.3: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true @@ -3665,14 +3636,6 @@ packages: chai: 4.3.7 dev: true - /@vitest/expect@0.32.4: - resolution: {integrity: sha512-m7EPUqmGIwIeoU763N+ivkFjTzbaBn0n9evsTOcde03ugy2avPs3kZbYmw3DkcH1j5mxhMhdamJkLQ6dM1bk/A==} - dependencies: - '@vitest/spy': 0.32.4 - '@vitest/utils': 0.32.4 - chai: 4.3.7 - dev: true - /@vitest/runner@0.30.1: resolution: {integrity: sha512-W62kT/8i0TF1UBCNMRtRMOBWJKRnNyv9RrjIgdUryEe0wNpGZvvwPDLuzYdxvgSckzjp54DSpv1xUbv4BQ0qVA==} dependencies: @@ -3682,14 +3645,6 @@ packages: pathe: 1.1.0 dev: true - /@vitest/runner@0.32.4: - resolution: {integrity: sha512-cHOVCkiRazobgdKLnczmz2oaKK9GJOw6ZyRcaPdssO1ej+wzHVIkWiCiNacb3TTYPdzMddYkCgMjZ4r8C0JFCw==} - dependencies: - '@vitest/utils': 0.32.4 - p-limit: 4.0.0 - pathe: 1.1.2 - dev: true - /@vitest/snapshot@0.30.1: resolution: {integrity: sha512-fJZqKrE99zo27uoZA/azgWyWbFvM1rw2APS05yB0JaLwUIg9aUtvvnBf4q7JWhEcAHmSwbrxKFgyBUga6tq9Tw==} dependencies: @@ -3698,22 +3653,8 @@ packages: pretty-format: 27.5.1 dev: true - /@vitest/snapshot@0.32.4: - resolution: {integrity: sha512-IRpyqn9t14uqsFlVI2d7DFMImGMs1Q9218of40bdQQgMePwVdmix33yMNnebXcTzDU5eiV3eUsoxxH5v0x/IQA==} - dependencies: - magic-string: 0.30.0 - pathe: 1.1.2 - pretty-format: 29.7.0 - dev: true - /@vitest/spy@0.30.1: resolution: {integrity: sha512-YfJeIf37GvTZe04ZKxzJfnNNuNSmTEGnla2OdL60C8od16f3zOfv9q9K0nNii0NfjDJRt/CVN/POuY5/zTS+BA==} - dependencies: - tinyspy: 2.1.0 - dev: true - - /@vitest/spy@0.32.4: - resolution: {integrity: sha512-oA7rCOqVOOpE6rEoXuCOADX7Lla1LIa4hljI2MSccbpec54q+oifhziZIJXxlE/CvI2E+ElhBHzVu0VEvJGQKQ==} dependencies: tinyspy: 2.2.1 dev: true @@ -3726,14 +3667,6 @@ packages: pretty-format: 27.5.1 dev: true - /@vitest/utils@0.32.4: - resolution: {integrity: sha512-Gwnl8dhd1uJ+HXrYyV0eRqfmk9ek1ASE/LWfTCuWMw+d07ogHqp4hEAV28NiecimK6UY9DpSEPh+pXBA5gtTBg==} - dependencies: - diff-sequences: 29.6.3 - loupe: 2.3.6 - pretty-format: 29.7.0 - dev: true - /@vue/compiler-core@3.2.47: resolution: {integrity: sha512-p4D7FDnQb7+YJmO2iPEv0SQNeNzcbHdGByJDsT4lynf63AFkOTFN07HsiRSvjGo0QrxR/o3d0hUyNCUnBU2Tig==} dependencies: @@ -5222,14 +5155,6 @@ packages: escape-string-regexp: 1.0.5 supports-color: 5.5.0 - /chalk@3.0.0: - resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==} - engines: {node: '>=8'} - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - dev: true - /chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} @@ -5971,10 +5896,6 @@ packages: engines: {node: '>= 6'} dev: true - /css.escape@1.5.1: - resolution: {integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==} - dev: true - /cssesc@3.0.0: resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} engines: {node: '>=4'} @@ -6501,11 +6422,6 @@ packages: /detect-node@2.0.5: resolution: {integrity: sha512-qi86tE6hRcFHy8jI1m2VG+LaPUR1LhqDa5G8tVjuUXmOrpuAgqsA1pN0+ldgr3aKUH+QLI9hCY/OcRYisERejw==} - /diff-sequences@29.6.3: - resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dev: true - /diffie-hellman@5.0.3: resolution: {integrity: sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==} dependencies: @@ -7145,11 +7061,6 @@ packages: resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} engines: {node: '>=0.8.0'} - /escape-string-regexp@2.0.0: - resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} - engines: {node: '>=8'} - dev: true - /escape-string-regexp@4.0.0: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} @@ -7486,17 +7397,6 @@ packages: transitivePeerDependencies: - supports-color - /expect@29.7.0: - resolution: {integrity: sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - '@jest/expect-utils': 29.7.0 - jest-get-type: 29.6.3 - jest-matcher-utils: 29.7.0 - jest-message-util: 29.7.0 - jest-util: 29.7.0 - dev: true - /express@4.17.1(supports-color@6.1.0): resolution: {integrity: sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==} engines: {node: '>= 0.10.0'} @@ -9457,58 +9357,6 @@ packages: has-to-string-tag-x: 1.4.1 is-object: 1.0.2 - /jest-diff@29.7.0: - resolution: {integrity: sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - chalk: 4.1.2 - diff-sequences: 29.6.3 - jest-get-type: 29.6.3 - pretty-format: 29.7.0 - dev: true - - /jest-get-type@29.6.3: - resolution: {integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dev: true - - /jest-matcher-utils@29.7.0: - resolution: {integrity: sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - chalk: 4.1.2 - jest-diff: 29.7.0 - jest-get-type: 29.6.3 - pretty-format: 29.7.0 - dev: true - - /jest-message-util@29.7.0: - resolution: {integrity: sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - '@babel/code-frame': 7.24.7 - '@jest/types': 29.6.3 - '@types/stack-utils': 2.0.3 - chalk: 4.1.2 - graceful-fs: 4.2.11 - micromatch: 4.0.5 - pretty-format: 29.7.0 - slash: 3.0.0 - stack-utils: 2.0.6 - dev: true - - /jest-util@29.7.0: - resolution: {integrity: sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - '@jest/types': 29.6.3 - '@types/node': 18.16.3 - chalk: 4.1.2 - ci-info: 3.8.0 - graceful-fs: 4.2.11 - picomatch: 2.3.1 - dev: true - /js-beautify@1.14.6: resolution: {integrity: sha512-GfofQY5zDp+cuHc+gsEXKPpNw2KbPddreEo35O6jT6i0RVK6LhsoYBhq5TvK4/n74wnA0QbK8gGd+jUZwTMKJw==} engines: {node: '>=10'} @@ -9689,10 +9537,6 @@ packages: engines: {node: '>=6'} hasBin: true - /jsonc-parser@3.2.0: - resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} - dev: true - /jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} optionalDependencies: @@ -10612,15 +10456,6 @@ packages: hasBin: true dev: true - /mlly@1.2.0: - resolution: {integrity: sha512-+c7A3CV0KGdKcylsI6khWyts/CYrGTrRVo4R/I7u/cUsy0Conxa6LUhiEzVKIw14lc2L5aiO4+SeVe4TeGRKww==} - dependencies: - acorn: 8.10.0 - pathe: 1.1.0 - pkg-types: 1.0.2 - ufo: 1.1.1 - dev: true - /mlly@1.7.1: resolution: {integrity: sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==} dependencies: @@ -11727,14 +11562,6 @@ packages: find-up: 5.0.0 dev: true - /pkg-types@1.0.2: - resolution: {integrity: sha512-hM58GKXOcj8WTqUXnsQyJYXdeAPbythQgEF3nTcEo+nkD49chjQ9IKm/QJy9xf6JakXptz86h7ecP2024rrLaQ==} - dependencies: - jsonc-parser: 3.2.0 - mlly: 1.2.0 - pathe: 1.1.0 - dev: true - /pkg-types@1.1.1: resolution: {integrity: sha512-ko14TjmDuQJ14zsotODv7dBlwxKhUKQEhuhmbqo1uCi9BB0Z2alo/wAXg6q1dTR5TyuqYyWhjtfe/Tsh+X28jQ==} dependencies: @@ -12063,7 +11890,7 @@ packages: engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.4 - picocolors: 1.0.0 + picocolors: 1.0.1 source-map-js: 1.0.2 dev: true @@ -12072,7 +11899,7 @@ packages: engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.4 - picocolors: 1.0.0 + picocolors: 1.0.1 source-map-js: 1.0.2 dev: true @@ -12156,15 +11983,6 @@ packages: react-is: 17.0.2 dev: true - /pretty-format@29.7.0: - resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - dependencies: - '@jest/schemas': 29.6.3 - ansi-styles: 5.2.0 - react-is: 17.0.2 - dev: true - /prism-react-renderer@1.2.0(react@17.0.2): resolution: {integrity: sha512-GHqzxLYImx1iKN1jJURcuRoA/0ygCcNhfGw1IT8nPIMzarmKQ3Nc+JcG0gi8JXQzuh0C5ShE4npMIoqNin40hg==} peerDependencies: @@ -14013,13 +13831,6 @@ packages: resolution: {integrity: sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==} deprecated: 'Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility' - /stack-utils@2.0.6: - resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} - engines: {node: '>=10'} - dependencies: - escape-string-regexp: 2.0.0 - dev: true - /stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} dev: true @@ -14592,16 +14403,6 @@ packages: engines: {node: '>=14.0.0'} dev: true - /tinypool@0.5.0: - resolution: {integrity: sha512-paHQtnrlS1QZYKF/GnLoOM/DN9fqaGOFbCbxzAhwniySnzl9Ebk8w73/dd34DAhe/obUbPAOldTyYXQZxnPBPQ==} - engines: {node: '>=14.0.0'} - dev: true - - /tinyspy@2.1.0: - resolution: {integrity: sha512-7eORpyqImoOvkQJCSkL0d0mB4NHHIFAy4b1u8PHdDa7SjGS2njzl6/lyGoZLm+eyYEtlUmFGE0rFj66SWxZgQQ==} - engines: {node: '>=14.0.0'} - dev: true - /tinyspy@2.2.1: resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} engines: {node: '>=14.0.0'} @@ -14905,10 +14706,6 @@ packages: hasBin: true dev: true - /ufo@1.1.1: - resolution: {integrity: sha512-MvlCc4GHrmZdAllBc0iUDowff36Q9Ndw/UzqmEKyrfSzokTd9ZCy1i+IIk5hrYKkjoYVQyNbrw7/F8XJ2rEwTg==} - dev: true - /ufo@1.5.3: resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} dev: true @@ -15360,33 +15157,12 @@ packages: resolution: {integrity: sha512-vTikpU/J7e6LU/8iM3dzBo8ZhEiKZEKRznEMm+mJh95XhWaPrJQraT/QsT2NWmuEf+zgAoMe64PKT7hfZ1Njmg==} engines: {node: '>=v14.18.0'} hasBin: true - dependencies: - cac: 6.7.14 - debug: 4.3.4(supports-color@5.5.0) - mlly: 1.2.0 - pathe: 1.1.0 - picocolors: 1.0.0 - vite: 3.2.5(@types/node@18.16.3)(terser@5.17.1) - transitivePeerDependencies: - - '@types/node' - - less - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - - /vite-node@0.32.4(@types/node@18.16.3)(terser@5.17.1): - resolution: {integrity: sha512-L2gIw+dCxO0LK14QnUMoqSYpa9XRGnTTTDjW2h19Mr+GR0EFj4vx52W41gFXfMLqpA00eK4ZjOVYo1Xk//LFEw==} - engines: {node: '>=v14.18.0'} - hasBin: true dependencies: cac: 6.7.14 debug: 4.3.4(supports-color@5.5.0) mlly: 1.7.1 pathe: 1.1.2 - picocolors: 1.0.0 + picocolors: 1.0.1 vite: 3.2.5(@types/node@18.16.3)(terser@5.17.1) transitivePeerDependencies: - '@types/node' @@ -15398,7 +15174,7 @@ packages: - terser dev: true - /vite-plugin-solid@2.10.2(@testing-library/jest-dom@5.17.0)(solid-js@1.8.17)(vite@3.2.5): + /vite-plugin-solid@2.10.2(solid-js@1.8.17)(vite@3.2.5): resolution: {integrity: sha512-AOEtwMe2baBSXMXdo+BUwECC8IFHcKS6WQV/1NEd+Q7vHPap5fmIhLcAzr+DUJ04/KHx/1UBU0l1/GWP+rMAPQ==} peerDependencies: '@testing-library/jest-dom': ^5.16.6 || ^5.17.0 || ^6.* @@ -15409,7 +15185,6 @@ packages: optional: true dependencies: '@babel/core': 7.24.7 - '@testing-library/jest-dom': 5.17.0 '@types/babel__core': 7.20.5 babel-preset-solid: 1.8.17(@babel/core@7.24.7) merge-anything: 5.1.7 @@ -15551,8 +15326,8 @@ packages: - terser dev: true - /vitest@0.32.4(jsdom@22.1.0)(terser@5.17.1): - resolution: {integrity: sha512-3czFm8RnrsWwIzVDu/Ca48Y/M+qh3vOnF16czJm98Q/AN1y3B6PBsyV8Re91Ty5s7txKNjEhpgtGPcfdbh2MZg==} + /vitest@0.30.1(jsdom@22.1.0)(terser@5.17.1): + resolution: {integrity: sha512-y35WTrSTlTxfMLttgQk4rHcaDkbHQwDP++SNwPb+7H8yb13Q3cu2EixrtHzF27iZ8v0XCciSsLg00RkPAzB/aA==} engines: {node: '>=v14.18.0'} hasBin: true peerDependencies: @@ -15585,27 +15360,29 @@ packages: '@types/chai': 4.3.16 '@types/chai-subset': 1.3.3 '@types/node': 18.16.3 - '@vitest/expect': 0.32.4 - '@vitest/runner': 0.32.4 - '@vitest/snapshot': 0.32.4 - '@vitest/spy': 0.32.4 - '@vitest/utils': 0.32.4 - acorn: 8.10.0 + '@vitest/expect': 0.30.1 + '@vitest/runner': 0.30.1 + '@vitest/snapshot': 0.30.1 + '@vitest/spy': 0.30.1 + '@vitest/utils': 0.30.1 + acorn: 8.11.3 acorn-walk: 8.2.0 cac: 6.7.14 chai: 4.3.7 + concordance: 5.0.4 debug: 4.3.4(supports-color@5.5.0) jsdom: 22.1.0 local-pkg: 0.4.3 magic-string: 0.30.0 pathe: 1.1.2 - picocolors: 1.0.0 + picocolors: 1.0.1 + source-map: 0.6.1 std-env: 3.7.0 strip-literal: 1.0.1 tinybench: 2.8.0 - tinypool: 0.5.0 + tinypool: 0.4.0 vite: 3.2.5(@types/node@18.16.3)(terser@5.17.1) - vite-node: 0.32.4(@types/node@18.16.3)(terser@5.17.1) + vite-node: 0.30.1(@types/node@18.16.3)(terser@5.17.1) why-is-node-running: 2.2.2 transitivePeerDependencies: - less diff --git a/vitest.config.ts b/vitest.config.ts index abb29bd401..2b108b4726 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -18,6 +18,7 @@ export default defineConfig({ setupFiles: [resolve(__dirname, 'scripts/vitest/setup.js')], clearMocks: true, exclude: [ + 'packages/solid-urql/**', '**/node_modules/**', '**/dist/**', '**/cypress/**',