From 11769487343e9bf0dab1aa81c0a39f3a5f6178c8 Mon Sep 17 00:00:00 2001 From: Arvin Xu Date: Sat, 20 Apr 2024 23:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test:=20use=20happy=20dom=20to=20fi?= =?UTF-8?q?x=20test=20(#2113)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✅ test: fix test * Update package.json --- package.json | 58 ++++++++++++++++++++++++------------------------ vitest.config.ts | 2 +- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 3270f9429490..e97c0e85f98c 100644 --- a/package.json +++ b/package.json @@ -83,23 +83,23 @@ "@ant-design/icons": "^5.3.6", "@anthropic-ai/sdk": "^0.18.0", "@auth/core": "0.28.0", - "@aws-sdk/client-bedrock-runtime": "^3.549.0", + "@aws-sdk/client-bedrock-runtime": "^3.556.0", "@azure/openai": "^1.0.0-beta.12", "@cfworker/json-schema": "^1.12.8", - "@google/generative-ai": "^0.7.0", - "@icons-pack/react-simple-icons": "^9.4.0", + "@google/generative-ai": "^0.7.1", + "@icons-pack/react-simple-icons": "^9.4.1", "@lobehub/chat-plugin-sdk": "latest", "@lobehub/chat-plugins-gateway": "latest", "@lobehub/icons": "latest", "@lobehub/tts": "latest", - "@lobehub/ui": "^1.138.5", - "@next/third-parties": "^14.1.4", - "@sentry/nextjs": "^7.105.0", + "@lobehub/ui": "^1.138.6", + "@next/third-parties": "^14.2.2", + "@sentry/nextjs": "^7.111.0", "@vercel/analytics": "^1.2.2", "@vercel/speed-insights": "^1.0.10", "ahooks": "^3.7.11", "ai": "3.0.19", - "antd": "^5.16.1", + "antd": "^5.16.2", "antd-style": "^3.6.2", "brotli-wasm": "^2.0.1", "chroma-js": "^2.4.2", @@ -109,17 +109,17 @@ "diff": "^5.2.0", "fast-deep-equal": "^3.1.3", "gpt-tokenizer": "^2.1.2", - "i18next": "^23.11.0", + "i18next": "^23.11.2", "i18next-browser-languagedetector": "^7.2.1", - "i18next-resources-to-backend": "^1.2.0", + "i18next-resources-to-backend": "^1.2.1", "idb-keyval": "^6.2.1", "immer": "^10.0.4", "jose": "^5.2.4", - "langfuse": "^3.4.0", - "langfuse-core": "^3.4.0", + "langfuse": "^3.7.0", + "langfuse-core": "^3.7.0", "lodash-es": "^4.17.21", "lucide-react": "latest", - "modern-screenshot": "^4.4.38", + "modern-screenshot": "^4.4.39", "nanoid": "^5.0.7", "next": "14.1.4", "next-auth": "5.0.0-beta.15", @@ -127,9 +127,9 @@ "numeral": "^2.0.6", "nuqs": "^1.17.1", "ollama": "^0.5.0", - "openai": "^4.33.0", + "openai": "^4.38.2", "polished": "^4.3.1", - "posthog-js": "^1.120.2", + "posthog-js": "^1.128.1", "query-string": "^9.0.0", "random-words": "^2.0.1", "react": "^18.2.0", @@ -138,7 +138,7 @@ "react-i18next": "^14.1.0", "react-layout-kit": "^1.9.0", "react-lazy-load": "^4.0.1", - "react-virtuoso": "^4.7.8", + "react-virtuoso": "^4.7.9", "react-wrap-balancer": "^1.1.0", "remark": "^14.0.3", "remark-gfm": "^3.0.1", @@ -158,41 +158,41 @@ "y-webrtc": "^10.3.0", "yaml": "^2.4.1", "yjs": "^13.6.14", - "zod": "^3.22.4", + "zod": "^3.22.5", "zustand": "^4.5.2", "zustand-utils": "^1.3.2" }, "devDependencies": { - "@commitlint/cli": "^19.2.1", + "@commitlint/cli": "^19.2.2", "@ducanh2912/next-pwa": "^10.2.6", "@edge-runtime/vm": "^3.2.0", "@lobehub/i18n-cli": "^1.18.1", "@lobehub/lint": "^1.23.3", "@lobehub/seo-cli": "^1.4.1", - "@next/bundle-analyzer": "^14.1.4", - "@next/eslint-plugin-next": "^14.1.4", + "@next/bundle-analyzer": "^14.2.2", + "@next/eslint-plugin-next": "^14.2.2", "@peculiar/webcrypto": "^1.4.6", "@testing-library/jest-dom": "^6.4.2", - "@testing-library/react": "^15.0.0", + "@testing-library/react": "^15.0.2", "@types/chroma-js": "^2.4.4", "@types/debug": "^4.1.12", - "@types/diff": "^5.0.9", + "@types/diff": "^5.2.0", "@types/json-schema": "^7.0.15", "@types/lodash": "^4.17.0", "@types/lodash-es": "^4.17.12", - "@types/node": "^20.12.6", + "@types/node": "^20.12.7", "@types/numeral": "^2.0.5", - "@types/react": "^18.2.75", - "@types/react-dom": "^18.2.24", + "@types/react": "^18.2.79", + "@types/react-dom": "^18.2.25", "@types/rtl-detect": "^1.0.3", "@types/semver": "^7.5.8", "@types/systemjs": "^6.13.5", "@types/ua-parser-js": "^0.7.39", "@types/uuid": "^9.0.8", - "@umijs/lint": "^4.1.8", + "@umijs/lint": "^4.1.10", "@vitest/coverage-v8": "~1.2.2", "ajv-keywords": "^5.1.0", - "commitlint": "^19.2.1", + "commitlint": "^19.2.2", "consola": "^3.2.3", "dpdm": "^3.14.0", "eslint": "^8.57.0", @@ -200,8 +200,8 @@ "fake-indexeddb": "^5.0.2", "glob": "^10.3.12", "gray-matter": "^4.0.3", + "happy-dom": "^14.7.1", "husky": "^9.0.11", - "jsdom": "^24.0.0", "just-diff": "^6.0.2", "lint-staged": "^15.2.2", "lodash": "^4.17.21", @@ -215,10 +215,10 @@ "semantic-release": "^21.1.2", "stylelint": "^15.11.0", "tsx": "^4.7.2", - "typescript": "^5.4.4", + "typescript": "^5.4.5", "unified": "^11.0.4", "unist-util-visit": "^5.0.0", - "vite": "^5.2.8", + "vite": "^5.2.10", "vitest": "~1.2.2", "vitest-canvas-mock": "^0.3.3" }, diff --git a/vitest.config.ts b/vitest.config.ts index ab26fbb8b58d..82b8907b637e 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -21,7 +21,7 @@ export default defineConfig({ inline: ['vitest-canvas-mock'], }, // threads: false, - environment: 'jsdom', + environment: 'happy-dom', globals: true, setupFiles: './tests/setup.ts', },