From ea050a59a4f30aa8082b07c5d04e81afe6ced0fb Mon Sep 17 00:00:00 2001 From: gpBlockchain <744158715@qq.com> Date: Mon, 30 Dec 2024 15:59:22 +0800 Subject: [PATCH] fix test err --- package.json | 5 ----- test/runners/mocha/tsconfig.json | 15 ++++++++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 8090574..f733355 100644 --- a/package.json +++ b/package.json @@ -14,11 +14,7 @@ "@ckb-lumos/light-client": "v0.20.0-alpha.1", "@ckb-lumos/lumos": "v0.20.0-alpha.1", "@ckb-lumos/rpc": "v0.20.0-alpha.1", - "@injectivelabs/networks": "^1.14.4", - "@injectivelabs/wallet-ts": "^1.14.4", "dotenv": "^16.0.1", - "json-rpc": "^0.3.0", - "json-rpc-2.0": "^1.7.0", "mochawesome-merge": "^4.2.1", "npm-run-all": "^4.1.5" }, @@ -33,7 +29,6 @@ "mocha-chai-jest-snapshot": "^1.1.0", "mochawesome": "^7.1.3", "mochawesome-report-generator": "^6.2.0", - "playwright": "^1.49.1", "prettier": "^2.0.5", "prettier-plugin-solidity": "^1.0.0-alpha.59", "solhint": "^3.2.1", diff --git a/test/runners/mocha/tsconfig.json b/test/runners/mocha/tsconfig.json index 5cf7614..3f11195 100644 --- a/test/runners/mocha/tsconfig.json +++ b/test/runners/mocha/tsconfig.json @@ -1,7 +1,12 @@ -// typescript config for mocha { "compilerOptions": { - // mocha runs in node, which uses commonjs modules - "module": "CommonJs" - } -} + "module": "commonjs", + "target": "es5", + "sourceMap": true, + "resolveJsonModule": true, + "lib": ["ES2015", "DOM"] + }, + "exclude": [ + "node_modules" + ] +} \ No newline at end of file