Skip to content

Commit a9401bf

Browse files
chore(karma): use super-dots and mocha reporters
1 parent b599e72 commit a9401bf

File tree

3 files changed

+66
-3
lines changed

3 files changed

+66
-3
lines changed

karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ module.exports = function (karma) {
1111
// possible values: LOG_DISABLE, LOG_ERROR, LOG_WARN, LOG_INFO, LOG_DEBUG
1212
logLevel: "warn",
1313
// possible values: 'dots', 'progress'
14-
reporters: 'dots',
14+
reporters: ['super-dots', 'mocha'],
1515
colors: true,
1616

17+
mochaReporter: {
18+
output: 'minimal',
19+
},
20+
1721
port: 8080,
1822

1923
// base path, that will be used to resolve files and exclude
@@ -31,6 +35,8 @@ module.exports = function (karma) {
3135
plugins: [
3236
require('karma-webpack'),
3337
require('karma-sourcemap-loader'),
38+
require('karma-super-dots-reporter'),
39+
require('karma-mocha-reporter'),
3440
require('karma-jasmine'),
3541
require('karma-chrome-launcher')
3642
],

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@
7171
"karma": "2.0.0",
7272
"karma-chrome-launcher": "2.2.0",
7373
"karma-jasmine": "1.1.1",
74+
"karma-mocha-reporter": "^2.2.5",
7475
"karma-sourcemap-loader": "0.3.7",
76+
"karma-super-dots-reporter": "^0.1.0",
7577
"karma-webpack": "2.0.13",
7678
"rollup": "0.57.1",
7779
"rollup-plugin-commonjs": "9.1.0",

yarn.lock

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ [email protected]:
278278
version "0.0.7"
279279
resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e"
280280

281+
ansi-regex@^0.2.0, ansi-regex@^0.2.1:
282+
version "0.2.1"
283+
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-0.2.1.tgz#0d8e946967a3d8143f93e24e298525fc1b2235f9"
284+
281285
ansi-regex@^2.0.0:
282286
version "2.1.1"
283287
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
@@ -286,6 +290,10 @@ ansi-regex@^3.0.0:
286290
version "3.0.0"
287291
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
288292

293+
ansi-styles@^1.1.0:
294+
version "1.1.0"
295+
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de"
296+
289297
ansi-styles@^2.2.1:
290298
version "2.2.1"
291299
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
@@ -903,7 +911,17 @@ center-align@^0.1.1:
903911
align-text "^0.1.3"
904912
lazy-cache "^1.0.3"
905913

906-
chalk@^1.1.1, chalk@^1.1.3:
914+
chalk@^0.5.1:
915+
version "0.5.1"
916+
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174"
917+
dependencies:
918+
ansi-styles "^1.1.0"
919+
escape-string-regexp "^1.0.0"
920+
has-ansi "^0.1.0"
921+
strip-ansi "^0.3.0"
922+
supports-color "^0.2.0"
923+
924+
chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
907925
version "1.1.3"
908926
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
909927
dependencies:
@@ -1783,7 +1801,7 @@ escape-html@~1.0.3:
17831801
version "1.0.3"
17841802
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
17851803

1786-
escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
1804+
escape-string-regexp@^1.0.0, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
17871805
version "1.0.5"
17881806
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
17891807

@@ -2417,6 +2435,12 @@ har-validator@~5.0.3:
24172435
ajv "^5.1.0"
24182436
har-schema "^2.0.0"
24192437

2438+
has-ansi@^0.1.0:
2439+
version "0.1.0"
2440+
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-0.1.0.tgz#84f265aae8c0e6a88a12d7022894b7568894c62e"
2441+
dependencies:
2442+
ansi-regex "^0.2.0"
2443+
24202444
has-ansi@^2.0.0:
24212445
version "2.0.0"
24222446
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
@@ -3125,12 +3149,27 @@ [email protected]:
31253149
version "1.1.1"
31263150
resolved "https://registry.yarnpkg.com/karma-jasmine/-/karma-jasmine-1.1.1.tgz#6fe840e75a11600c9d91e84b33c458e1c46a3529"
31273151

3152+
karma-mocha-reporter@^2.2.5:
3153+
version "2.2.5"
3154+
resolved "https://registry.yarnpkg.com/karma-mocha-reporter/-/karma-mocha-reporter-2.2.5.tgz#15120095e8ed819186e47a0b012f3cd741895560"
3155+
dependencies:
3156+
chalk "^2.1.0"
3157+
log-symbols "^2.1.0"
3158+
strip-ansi "^4.0.0"
3159+
31283160
31293161
version "0.3.7"
31303162
resolved "https://registry.yarnpkg.com/karma-sourcemap-loader/-/karma-sourcemap-loader-0.3.7.tgz#91322c77f8f13d46fed062b042e1009d4c4505d8"
31313163
dependencies:
31323164
graceful-fs "^4.1.2"
31333165

3166+
karma-super-dots-reporter@^0.1.0:
3167+
version "0.1.0"
3168+
resolved "https://registry.yarnpkg.com/karma-super-dots-reporter/-/karma-super-dots-reporter-0.1.0.tgz#8840f8e6669b1076ca5d5aad003435f62864f208"
3169+
dependencies:
3170+
chalk "^0.5.1"
3171+
log-symbols "^1.0.1"
3172+
31343173
31353174
version "2.0.13"
31363175
resolved "https://registry.yarnpkg.com/karma-webpack/-/karma-webpack-2.0.13.tgz#cf56e3056c15b7747a0bb2140fc9a6be41dd9f02"
@@ -3332,6 +3371,12 @@ lodash@^4.13.1, lodash@^4.17.5:
33323371
version "4.17.5"
33333372
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
33343373

3374+
log-symbols@^1.0.1:
3375+
version "1.0.2"
3376+
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
3377+
dependencies:
3378+
chalk "^1.0.0"
3379+
33353380
log-symbols@^2.1.0:
33363381
version "2.2.0"
33373382
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
@@ -5326,6 +5371,12 @@ stringstream@~0.0.4, stringstream@~0.0.5:
53265371
version "0.0.5"
53275372
resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
53285373

5374+
strip-ansi@^0.3.0:
5375+
version "0.3.0"
5376+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.3.0.tgz#25f48ea22ca79187f3174a4db8759347bb126220"
5377+
dependencies:
5378+
ansi-regex "^0.2.1"
5379+
53295380
strip-ansi@^3.0.0, strip-ansi@^3.0.1:
53305381
version "3.0.1"
53315382
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
@@ -5368,6 +5419,10 @@ subarg@^1.0.0:
53685419
dependencies:
53695420
minimist "^1.1.0"
53705421

5422+
supports-color@^0.2.0:
5423+
version "0.2.0"
5424+
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a"
5425+
53715426
supports-color@^2.0.0:
53725427
version "2.0.0"
53735428
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"

0 commit comments

Comments
 (0)