Skip to content

Commit bcb324f

Browse files
Meligyhansl
authored andcommitted
fix(test): exclude non spec files from test.ts (#3538)
1 parent 7545d51 commit bcb324f

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

Lines changed: 1 addition & 1 deletion
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)