Skip to content

Commit 25246b4

Browse files
author
hongarc
committed
chore(jasmine): add reporter
1 parent edfd052 commit 25246b4

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

gulpfile.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var gHash = require('gulp-hash');
1010
var gClean = require('gulp-clean');
1111
var gTerser = require('gulp-terser');
1212
var gJasmine = require('gulp-jasmine');
13+
var { SpecReporter } = require('jasmine-spec-reporter');
1314
var gJshint = require('gulp-jshint');
1415

1516
var source = require('vinyl-source-stream');
@@ -148,9 +149,12 @@ var style = function() {
148149

149150
var jasmine = function() {
150151
return src('__tests__/*.spec.js')
151-
.pipe(gJasmine({ config: {
152-
random: false,
153-
}
152+
.pipe(gJasmine({
153+
config: {
154+
verbose: true,
155+
random: false,
156+
},
157+
reporter: new SpecReporter(),
154158
}));
155159
};
156160

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"gulp-jshint": "^2.1.0",
2828
"gulp-terser": "^1.2.0",
2929
"gulp-uglify": "^3.0.2",
30+
"jasmine-spec-reporter": "^4.2.1",
3031
"jshint": "^2.11.0",
3132
"prompt": "^1.0.0",
3233
"vinyl-buffer": "^1.0.1",

yarn.lock

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,11 @@ colors@1.0.x:
935935
resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
936936
integrity sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=
937937

938+
colors@1.1.2:
939+
version "1.1.2"
940+
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
941+
integrity sha1-FopHAXVran9RoSzgyXv6KMCE7WM=
942+
938943
colors@^1.1.2:
939944
version "1.4.0"
940945
resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
@@ -1953,11 +1958,6 @@ gulp-cli@^2.2.0:
19531958
v8flags "^3.0.1"
19541959
yargs "^7.1.0"
19551960

1956-
gulp-hash-filename@^3.0.0:
1957-
version "3.0.0"
1958-
resolved "https://registry.yarnpkg.com/gulp-hash-filename/-/gulp-hash-filename-3.0.0.tgz#e9820fb7a20f3cd16a720413be7485aaee1782b9"
1959-
integrity sha512-wAtigX+faOEl/cQJCJ/pcY6mKSS2cGkoCT1FopUqjakM6AKYe1WuYEht0wcWTNinJGxj6m1tKMEMZUWhO0MD5Q==
1960-
19611961
gulp-hash@^4.2.2:
19621962
version "4.2.2"
19631963
resolved "https://registry.yarnpkg.com/gulp-hash/-/gulp-hash-4.2.2.tgz#2cf4ad081ef7a65393a51e3df58f514f388f4523"
@@ -2500,6 +2500,13 @@ jasmine-core@~3.5.0:
25002500
resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.5.0.tgz#132c23e645af96d85c8bca13c8758b18429fc1e4"
25012501
integrity sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA==
25022502

2503+
jasmine-spec-reporter@^4.2.1:
2504+
version "4.2.1"
2505+
resolved "https://registry.yarnpkg.com/jasmine-spec-reporter/-/jasmine-spec-reporter-4.2.1.tgz#1d632aec0341670ad324f92ba84b4b32b35e9e22"
2506+
integrity sha512-FZBoZu7VE5nR7Nilzy+Np8KuVIOxF4oXDPDknehCYBDE080EnlPu0afdZNmpGDBRCUBv3mj5qgqCRmk6W/K8vg==
2507+
dependencies:
2508+
colors "1.1.2"
2509+
25032510
jasmine-terminal-reporter@^1.0.3:
25042511
version "1.0.3"
25052512
resolved "https://registry.yarnpkg.com/jasmine-terminal-reporter/-/jasmine-terminal-reporter-1.0.3.tgz#896f1ec8fdf4bf6aecdd41c503eda7347f61526b"

0 commit comments

Comments
 (0)