We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e844706 commit 943839aCopy full SHA for 943839a
packages/angular-cli/blueprints/ng2/files/__path__/test.ts
@@ -29,6 +29,13 @@ Promise.all([
29
// Then we find all the tests.
30
.then(() => require.context('./', true, /\.spec\.ts/))
31
// And load the modules.
32
- .then(context => context.keys().map(context))
+ .then(context => {
33
+ try {
34
+ return context.keys().map(context);
35
+ } catch (e) {
36
+ console && console.error(e.message, e.stack);
37
+ throw e;
38
+ }
39
+ })
40
// Finally, start Karma to run the tests.
41
.then(__karma__.start, __karma__.error);
0 commit comments