From 70516ba0f6a375d901c68753404b5576cc676cd4 Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Thu, 11 Jul 2024 19:15:50 +0800 Subject: [PATCH] chore: small changes --- package.json | 2 +- src/share/karma.conf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 469759f..891029f 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "devDependencies": { "@babel/core": "^7.10.5", "@babel/preset-react": "^7.22.5", + "@jsdevtools/coverage-istanbul-loader": "^3.0.5", "@metahub/karma-postcss-preprocessor": "^4.0.1", "@storybook/addon-knobs": "^6.2.9", "@storybook/addon-storysource": "^6.4.14", @@ -56,7 +57,6 @@ "eslint": "^7.15.0", "eslint-config-prettier": "^7.0.0", "execa": "^4.0.0", - "istanbul-instrumenter-loader": "^3.0.1", "karma": "^5.2.3", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^3.2.0", diff --git a/src/share/karma.conf.js b/src/share/karma.conf.js index 66f3538..9e3a193 100644 --- a/src/share/karma.conf.js +++ b/src/share/karma.conf.js @@ -20,7 +20,7 @@ module.exports = function (name, { useIcon = false, hasStyle = true } = {}) { webpackCfg.module.rules.push({ test: /\.ts$/, exclude: /node_modules|share/, - loader: 'istanbul-instrumenter-loader', + loader: '@jsdevtools/coverage-istanbul-loader', enforce: 'post', options: { esModules: true,