diff --git a/packages/static/package.json b/packages/static/package.json index 3cd6fc3..996d487 100644 --- a/packages/static/package.json +++ b/packages/static/package.json @@ -60,7 +60,6 @@ "@types/node": "catalog:", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", - "jsdom": "^29.0.1", "react": "catalog:", "react-dom": "catalog:", "tsdown": "^0.21.4", diff --git a/packages/static/src/__tests__/vitest.setup.ts b/packages/static/src/__tests__/vitest.setup.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/packages/static/src/__tests__/vitest.setup.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/static/vitest.config.ts b/packages/static/vitest.config.ts index f3faec1..651b768 100644 --- a/packages/static/vitest.config.ts +++ b/packages/static/vitest.config.ts @@ -2,8 +2,6 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { - environment: "jsdom", - setupFiles: ["./src/__tests__/vitest.setup.ts"], globals: true, exclude: ["**/node_modules/**", "**/e2e/**"], }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c73ea6a..50ff067 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -183,9 +183,6 @@ importers: '@types/react-dom': specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.14) - jsdom: - specifier: ^29.0.1 - version: 29.0.1 react: specifier: 'catalog:' version: 19.2.4 @@ -2899,6 +2896,7 @@ snapshots: '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) '@csstools/css-tokenizer': 4.0.0 lru-cache: 11.2.7 + optional: true '@asamuzakjp/dom-selector@7.0.4': dependencies: @@ -2907,8 +2905,10 @@ snapshots: css-tree: 3.2.1 is-potential-custom-element-name: 1.0.1 lru-cache: 11.2.7 + optional: true - '@asamuzakjp/nwsapi@2.3.9': {} + '@asamuzakjp/nwsapi@2.3.9': + optional: true '@babel/generator@8.0.0-rc.2': dependencies: @@ -2935,6 +2935,7 @@ snapshots: '@bramus/specificity@2.4.2': dependencies: css-tree: 3.2.1 + optional: true '@cloudflare/kv-asset-handler@0.4.2': {} @@ -2963,12 +2964,14 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 - '@csstools/color-helpers@6.0.2': {} + '@csstools/color-helpers@6.0.2': + optional: true '@csstools/css-calc@3.1.1(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0)': dependencies: '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) '@csstools/css-tokenizer': 4.0.0 + optional: true '@csstools/css-color-parser@4.0.2(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0)': dependencies: @@ -2976,16 +2979,20 @@ snapshots: '@csstools/css-calc': 3.1.1(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) '@csstools/css-tokenizer': 4.0.0 + optional: true '@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0)': dependencies: '@csstools/css-tokenizer': 4.0.0 + optional: true '@csstools/css-syntax-patches-for-csstree@1.1.1(css-tree@3.2.1)': optionalDependencies: css-tree: 3.2.1 + optional: true - '@csstools/css-tokenizer@4.0.0': {} + '@csstools/css-tokenizer@4.0.0': + optional: true '@emnapi/core@1.9.0': dependencies: @@ -3164,7 +3171,8 @@ snapshots: '@esbuild/win32-x64@0.27.4': optional: true - '@exodus/bytes@1.15.0': {} + '@exodus/bytes@1.15.0': + optional: true '@funstack/router@1.1.0(react@19.2.4)': dependencies: @@ -3970,6 +3978,7 @@ snapshots: bidi-js@1.0.3: dependencies: require-from-string: 2.0.2 + optional: true birpc@4.0.0: {} @@ -4022,6 +4031,7 @@ snapshots: dependencies: mdn-data: 2.27.1 source-map-js: 1.2.1 + optional: true csstype@3.2.3: {} @@ -4031,12 +4041,14 @@ snapshots: whatwg-url: 16.0.1 transitivePeerDependencies: - '@noble/hashes' + optional: true debug@4.4.3: dependencies: ms: 2.1.3 - decimal.js@10.6.0: {} + decimal.js@10.6.0: + optional: true decode-named-character-reference@1.3.0: dependencies: @@ -4065,7 +4077,8 @@ snapshots: tapable: 2.3.0 optional: true - entities@6.0.1: {} + entities@6.0.1: + optional: true error-stack-parser-es@1.0.5: {} @@ -4311,6 +4324,7 @@ snapshots: '@exodus/bytes': 1.15.0 transitivePeerDependencies: - '@noble/hashes' + optional: true html-void-elements@3.0.0: {} @@ -4331,7 +4345,8 @@ snapshots: is-plain-obj@4.1.0: {} - is-potential-custom-element-name@1.0.1: {} + is-potential-custom-element-name@1.0.1: + optional: true is-reference@3.0.3: dependencies: @@ -4371,6 +4386,7 @@ snapshots: xml-name-validator: 5.0.0 transitivePeerDependencies: - '@noble/hashes' + optional: true jsesc@3.1.0: {} @@ -4436,7 +4452,8 @@ snapshots: longest-streak@3.1.0: {} - lru-cache@11.2.7: {} + lru-cache@11.2.7: + optional: true magic-string@0.30.21: dependencies: @@ -4543,7 +4560,8 @@ snapshots: dependencies: '@types/mdast': 4.0.4 - mdn-data@2.27.1: {} + mdn-data@2.27.1: + optional: true merge-stream@2.0.0: optional: true @@ -4829,6 +4847,7 @@ snapshots: parse5@8.0.0: dependencies: entities: 6.0.1 + optional: true path-to-regexp@6.3.0: {} @@ -4862,7 +4881,8 @@ snapshots: property-information@7.1.0: {} - punycode@2.3.1: {} + punycode@2.3.1: + optional: true quansync@1.0.0: {} @@ -4966,7 +4986,8 @@ snapshots: unified: 11.0.5 vfile: 6.0.3 - require-from-string@2.0.2: {} + require-from-string@2.0.2: + optional: true resolve-pkg-maps@1.0.0: {} @@ -5065,6 +5086,7 @@ snapshots: saxes@6.0.0: dependencies: xmlchars: 2.2.0 + optional: true scheduler@0.27.0: {} @@ -5167,7 +5189,8 @@ snapshots: has-flag: 4.0.0 optional: true - symbol-tree@3.2.4: {} + symbol-tree@3.2.4: + optional: true tapable@2.3.0: optional: true @@ -5202,19 +5225,23 @@ snapshots: tinyrainbow@3.1.0: {} - tldts-core@7.0.27: {} + tldts-core@7.0.27: + optional: true tldts@7.0.27: dependencies: tldts-core: 7.0.27 + optional: true tough-cookie@6.0.1: dependencies: tldts: 7.0.27 + optional: true tr46@6.0.0: dependencies: punycode: 2.3.1 + optional: true tree-kill@1.2.2: {} @@ -5282,7 +5309,8 @@ snapshots: undici@7.24.4: {} - undici@7.24.5: {} + undici@7.24.5: + optional: true unenv@2.0.0-rc.24: dependencies: @@ -5395,6 +5423,7 @@ snapshots: w3c-xmlserializer@5.0.0: dependencies: xml-name-validator: 5.0.0 + optional: true watchpack@2.5.1: dependencies: @@ -5402,7 +5431,8 @@ snapshots: graceful-fs: 4.2.11 optional: true - webidl-conversions@8.0.1: {} + webidl-conversions@8.0.1: + optional: true webpack-sources@3.3.4: optional: true @@ -5440,7 +5470,8 @@ snapshots: - uglify-js optional: true - whatwg-mimetype@5.0.0: {} + whatwg-mimetype@5.0.0: + optional: true whatwg-url@16.0.1: dependencies: @@ -5449,6 +5480,7 @@ snapshots: webidl-conversions: 8.0.1 transitivePeerDependencies: - '@noble/hashes' + optional: true why-is-node-running@2.3.0: dependencies: @@ -5481,9 +5513,11 @@ snapshots: ws@8.18.0: {} - xml-name-validator@5.0.0: {} + xml-name-validator@5.0.0: + optional: true - xmlchars@2.2.0: {} + xmlchars@2.2.0: + optional: true youch-core@0.3.3: dependencies: