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 71423a1 commit f09439cCopy full SHA for f09439c
packages/angular-cli/blueprints/ng2/files/__path__/test.ts
@@ -29,6 +29,15 @@ 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
+ if (console) {
37
+ console.error(e.message, e.stack);
38
+ }
39
+ throw e;
40
41
+ })
42
// Finally, start Karma to run the tests.
43
.then(__karma__.start, __karma__.error);
0 commit comments