From 04c6b4935871798fc25cf8c93e065d98e8332b63 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 19 Oct 2023 09:29:54 +0800 Subject: [PATCH] test: update jest config. --- package.json | 8 ++------ test/index.test.tsx | 3 --- website/package.json | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index f153acd..949e89a 100644 --- a/package.json +++ b/package.json @@ -46,14 +46,10 @@ "node": ">=16.0.0" }, "devDependencies": { - "@kkt/less-modules": "^7.5.2", - "@kkt/ncc": "^1.0.15", + "@kkt/less-modules": "^7.5.4", + "@kkt/ncc": "^1.1.1", "compile-less-cli": "^1.8.13", "husky": "^8.0.1", - "jest": "^29.5.0", - "jest-environment-jsdom": "^29.6.0", - "jest-environment-node": "^29.5.0", - "jest-watch-typeahead": "^2.2.2", "lerna": "^7.1.4", "lint-staged": "^15.0.0", "prettier": "^3.0.1", diff --git a/test/index.test.tsx b/test/index.test.tsx index 18e978e..e8c860b 100644 --- a/test/index.test.tsx +++ b/test/index.test.tsx @@ -1,6 +1,3 @@ -/** - * @jest-environment jsdom - */ import { render, screen } from '@testing-library/react'; import '@testing-library/jest-dom'; import React from 'react'; diff --git a/website/package.json b/website/package.json index a3a0f7e..e865756 100644 --- a/website/package.json +++ b/website/package.json @@ -16,7 +16,7 @@ "devDependencies": { "@types/react": "^18.0.17", "@types/react-dom": "^18.0.6", - "kkt": "^7.4.9", + "kkt": "^7.5.4", "markdown-react-code-preview-loader": "^2.1.2" }, "eslintConfig": {