chore(jasmine): add reporter

This commit is contained in:
hongarc 2020-03-15 10:55:42 +07:00
parent edfd052c4c
commit 25246b4024
3 changed files with 20 additions and 8 deletions

View file

@ -10,6 +10,7 @@ var gHash = require('gulp-hash');
var gClean = require('gulp-clean'); var gClean = require('gulp-clean');
var gTerser = require('gulp-terser'); var gTerser = require('gulp-terser');
var gJasmine = require('gulp-jasmine'); var gJasmine = require('gulp-jasmine');
var { SpecReporter } = require('jasmine-spec-reporter');
var gJshint = require('gulp-jshint'); var gJshint = require('gulp-jshint');
var source = require('vinyl-source-stream'); var source = require('vinyl-source-stream');
@ -148,9 +149,12 @@ var style = function() {
var jasmine = function() { var jasmine = function() {
return src('__tests__/*.spec.js') return src('__tests__/*.spec.js')
.pipe(gJasmine({ config: { .pipe(gJasmine({
random: false, config: {
} verbose: true,
random: false,
},
reporter: new SpecReporter(),
})); }));
}; };

View file

@ -27,6 +27,7 @@
"gulp-jshint": "^2.1.0", "gulp-jshint": "^2.1.0",
"gulp-terser": "^1.2.0", "gulp-terser": "^1.2.0",
"gulp-uglify": "^3.0.2", "gulp-uglify": "^3.0.2",
"jasmine-spec-reporter": "^4.2.1",
"jshint": "^2.11.0", "jshint": "^2.11.0",
"prompt": "^1.0.0", "prompt": "^1.0.0",
"vinyl-buffer": "^1.0.1", "vinyl-buffer": "^1.0.1",

View file

@ -935,6 +935,11 @@ colors@1.0.x:
resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
integrity sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs= integrity sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=
colors@1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
integrity sha1-FopHAXVran9RoSzgyXv6KMCE7WM=
colors@^1.1.2: colors@^1.1.2:
version "1.4.0" version "1.4.0"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
@ -1953,11 +1958,6 @@ gulp-cli@^2.2.0:
v8flags "^3.0.1" v8flags "^3.0.1"
yargs "^7.1.0" yargs "^7.1.0"
gulp-hash-filename@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/gulp-hash-filename/-/gulp-hash-filename-3.0.0.tgz#e9820fb7a20f3cd16a720413be7485aaee1782b9"
integrity sha512-wAtigX+faOEl/cQJCJ/pcY6mKSS2cGkoCT1FopUqjakM6AKYe1WuYEht0wcWTNinJGxj6m1tKMEMZUWhO0MD5Q==
gulp-hash@^4.2.2: gulp-hash@^4.2.2:
version "4.2.2" version "4.2.2"
resolved "https://registry.yarnpkg.com/gulp-hash/-/gulp-hash-4.2.2.tgz#2cf4ad081ef7a65393a51e3df58f514f388f4523" resolved "https://registry.yarnpkg.com/gulp-hash/-/gulp-hash-4.2.2.tgz#2cf4ad081ef7a65393a51e3df58f514f388f4523"
@ -2500,6 +2500,13 @@ jasmine-core@~3.5.0:
resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.5.0.tgz#132c23e645af96d85c8bca13c8758b18429fc1e4" resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.5.0.tgz#132c23e645af96d85c8bca13c8758b18429fc1e4"
integrity sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA== integrity sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA==
jasmine-spec-reporter@^4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/jasmine-spec-reporter/-/jasmine-spec-reporter-4.2.1.tgz#1d632aec0341670ad324f92ba84b4b32b35e9e22"
integrity sha512-FZBoZu7VE5nR7Nilzy+Np8KuVIOxF4oXDPDknehCYBDE080EnlPu0afdZNmpGDBRCUBv3mj5qgqCRmk6W/K8vg==
dependencies:
colors "1.1.2"
jasmine-terminal-reporter@^1.0.3: jasmine-terminal-reporter@^1.0.3:
version "1.0.3" version "1.0.3"
resolved "https://registry.yarnpkg.com/jasmine-terminal-reporter/-/jasmine-terminal-reporter-1.0.3.tgz#896f1ec8fdf4bf6aecdd41c503eda7347f61526b" resolved "https://registry.yarnpkg.com/jasmine-terminal-reporter/-/jasmine-terminal-reporter-1.0.3.tgz#896f1ec8fdf4bf6aecdd41c503eda7347f61526b"