Show errors from Karma (#2545)

This commit is contained in:
BrennanConroy 2018-06-26 20:47:07 -07:00 committed by GitHub
parent 93cfdeb572
commit bc8aae5d50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 166 additions and 154 deletions

View File

@ -1,3 +1,4 @@
try {
const path = require("path"); const path = require("path");
let defaultReporters = ["progress", "summary"]; let defaultReporters = ["progress", "summary"];
@ -49,3 +50,6 @@ function createKarmaConfig(config) {
} }
module.exports = createKarmaConfig; module.exports = createKarmaConfig;
} catch (e) {
console.error(e);
}

View File

@ -1,3 +1,4 @@
try {
// Karma configuration for a local run (the default) // Karma configuration for a local run (the default)
const createKarmaConfig = require("./karma.base.conf"); const createKarmaConfig = require("./karma.base.conf");
const fs = require("fs"); const fs = require("fs");
@ -53,3 +54,6 @@ if (process.env.ASPNETCORE_SIGNALR_TEST_ALL_BROWSERS === "true") {
module.exports = createKarmaConfig({ module.exports = createKarmaConfig({
browsers, browsers,
}); });
} catch (e) {
console.error(e);
}

View File

@ -1,3 +1,4 @@
try {
// Karma configuration for a SauceLabs-based CI run. // Karma configuration for a SauceLabs-based CI run.
const createKarmaConfig = require("./karma.base.conf"); const createKarmaConfig = require("./karma.base.conf");
@ -66,3 +67,6 @@ module.exports = createKarmaConfig({
} }
}, },
}); });
} catch (e) {
console.error(e);
}