Skip to content

Commit ca47273

Browse files
committed
feat: update test script
1 parent 70c5ae0 commit ca47273

File tree

5 files changed

+962
-19969
lines changed

5 files changed

+962
-19969
lines changed

Diff for: angular.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
"tsConfig": "tsconfig.spec.json",
9797
"karmaConfig": "karma.conf.js",
9898
"assets": ["src/favicon.ico", "src/assets"],
99-
"styles": ["src/styles.less"],
100-
"scripts": []
99+
"styles": ["src/assets/styles/ng-zorro.less", "src/assets/styles/global.less"],
100+
"scripts": ["node_modules/apexcharts/dist/apexcharts.min.js"]
101101
}
102102
},
103103
"lint": {

Diff for: src/karma.conf.js renamed to karma.conf.js

+14-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,25 @@ module.exports = function (config) {
99
require("karma-jasmine"),
1010
require("karma-chrome-launcher"),
1111
require("karma-jasmine-html-reporter"),
12-
require("karma-coverage-istanbul-reporter"),
12+
require("karma-coverage"),
1313
require("@angular-devkit/build-angular/plugins/karma"),
1414
],
1515
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
1622
clearContext: false, // leave Jasmine Spec Runner output visible in browser
1723
},
18-
coverageIstanbulReporter: {
19-
dir: require("path").join(__dirname, "../coverage/ng-tabler"),
20-
reports: ["html", "lcovonly", "text-summary"],
21-
fixWebpackSourcePaths: true,
24+
jasmineHtmlReporter: {
25+
suppressAll: true, // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require("path").join(__dirname, "./coverage/demo-angular"),
29+
subdir: ".",
30+
reporters: [{ type: "html" }, { type: "text-summary" }],
2231
},
2332
reporters: ["progress", "kjhtml"],
2433
port: 9876,

0 commit comments

Comments
 (0)