From bef7c2c4115cfb3202a525d8c6c46a85cc8f12e9 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Wed, 15 Feb 2023 17:40:35 +0800 Subject: [PATCH] #0@trivial: Update ts-jest config remove warn. --- packages/happy-dom/package.json | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/packages/happy-dom/package.json b/packages/happy-dom/package.json index d41e0ef50..cae78eddc 100644 --- a/packages/happy-dom/package.json +++ b/packages/happy-dom/package.json @@ -34,25 +34,20 @@ }, "jest": { "transform": { - "^.+\\.ts?$": "ts-jest" + "^.+\\.ts?$": ["ts-jest", { "tsconfig": "./test/tsconfig.json" }] }, "testMatch": [ "**/test/**/*.test.ts" ], - "globals": { - "ts-jest": { - "tsconfig": "./test/tsconfig.json" - } - }, "testEnvironment": "node" }, "dependencies": { + "css.escape": "^1.5.1", "he": "^1.2.0", "node-fetch": "^2.x.x", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", "webidl-conversions": "^7.0.0", - "css.escape": "^1.5.1" + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0" }, "devDependencies": { "@types/he": "^1.1.2", @@ -63,16 +58,16 @@ "@typescript-eslint/parser": "^5.16.0", "eslint": "^8.11.0", "eslint-config-prettier": "^8.5.0", - "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-filenames": "^1.3.2", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^26.1.2", "eslint-plugin-jsdoc": "^38.0.6", "eslint-plugin-json": "^3.1.0", + "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-turbo": "^0.0.7", "jest": "^29.4.0", - "ts-jest": "^29.0.5", "prettier": "^2.6.0", + "ts-jest": "^29.0.5", "typescript": "^4.6.2" } }