Skip to content

Commit

Permalink
Updated tests to reference source
Browse files Browse the repository at this point in the history
  • Loading branch information
obany committed Oct 3, 2017
1 parent 0a54c26 commit b8c00be
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 20 deletions.
12 changes: 9 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const gulp = require("gulp");
const gutil = require("gulp-util");
const replace = require("gulp-replace");
const tsc = require("gulp-typescript");
const gulpTslint = require("gulp-tslint");
Expand Down Expand Up @@ -134,6 +135,7 @@ gulp.task("unit-transpile", () => {
});

return tsResult.js
.pipe(replace(/(require.*?)(..\/src\/)/g, "$1../dist/"))
.pipe(sourcemaps.write({"includeContent": true}))
.pipe(gulp.dest(unitDistFolder))
.on("end", () => {
Expand Down Expand Up @@ -176,7 +178,9 @@ gulp.task("unit-runner", () => {
.pipe(mocha({
"reporter": "spec",
"timeout": "360000"
}).on("error", () => {
}).on("error", (err) => {
gutil.log(err.message);
gutil.log(err.stack);
process.exit(1);
}))
.pipe(istanbul.writeReports({
Expand Down Expand Up @@ -208,13 +212,15 @@ gulp.task("unit-post-remap", () => {


gulp.task("unit", (cb) => {
runSequence("unit-clean",
runSequence(
"unit-clean",
"unit-transpile",
"unit-lint",
"unit-pre-coverage",
"unit-runner",
"unit-remap",
"unit-post-remap", cb);
"unit-post-remap", cb
);
});

gulp.task("coveralls", () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/dist/helpers/arrayHelper.spec.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/unit/dist/helpers/colorHelper.spec.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/unit/dist/helpers/errorHandler.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b8c00be

Please sign in to comment.