Skip to content

Commit 2fa5abe

Browse files
committed
ignore mocha stuff
1 parent eeaf9c9 commit 2fa5abe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/@angular/cli/plugins/karma-webpack-custom.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function Plugin(
5656
});
5757

5858
this.emitter = emitter;
59-
this.wrapMocha = frameworks.indexOf('mocha') >= 0 && includeIndex;
59+
// this.wrapMocha = frameworks.indexOf('mocha') >= 0 && includeIndex;
6060
this.optionsCount = applyOptions.length;
6161
this.files = [];
6262
this.basePath = basePath;
@@ -168,9 +168,9 @@ Plugin.prototype.make = function (compilation, callback) {
168168
async.forEach(this.files.slice(), function (file, callback) {
169169
var entry = file;
170170

171-
if (this.wrapMocha) {
172-
entry = require.resolve('./mocha-env-loader') + '!' + entry;
173-
}
171+
// if (this.wrapMocha) {
172+
// entry = require.resolve('./mocha-env-loader') + '!' + entry;
173+
// }
174174

175175
var dep = new SingleEntryDependency(entry);
176176

@@ -245,7 +245,6 @@ function createPreprocesor( /* config.basePath */basePath, webpackPlugin) {
245245
webpackPlugin.middleware.invalidate();
246246
}
247247

248-
console.log('waiting for', file.path)
249248
// read blocks until bundle is done
250249
webpackPlugin.readFile(path.relative(basePath, file.path + '.bundle.js'), function (err, content) {
251250
if (err) {

0 commit comments

Comments
 (0)