Skip to content

Commit 4889762

Browse files
MeligyMRHarrison
authored andcommitted
fix(test): exclude non spec files from test.ts (angular#3538)
1 parent 2ac2a51 commit 4889762

File tree

1 file changed

+1
-1
lines changed
  • packages/angular-cli/blueprints/ng2/files/__path__

1 file changed

+1
-1
lines changed

packages/angular-cli/blueprints/ng2/files/__path__/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ getTestBed().initTestEnvironment(
2525
platformBrowserDynamicTesting()
2626
);
2727
// Then we find all the tests.
28-
let context = require.context('./', true, /\.spec\.ts/);
28+
let context = require.context('./', true, /\.spec\.ts$/);
2929
// And load the modules.
3030
context.keys().map(context);
3131
// Finally, start Karma to run the tests.

0 commit comments

Comments
 (0)