Skip to content

Commit 46123a7

Browse files
committed
add test.ts
1 parent bb430da commit 46123a7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/test.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import 'zone.js/dist/zone-testing';
2+
import { getTestBed } from '@angular/core/testing';
3+
import {
4+
BrowserDynamicTestingModule,
5+
platformBrowserDynamicTesting
6+
} from '@angular/platform-browser-dynamic/testing';
7+
8+
declare const require: any;
9+
10+
// First, initialize the Angular testing environment.
11+
getTestBed().initTestEnvironment(
12+
BrowserDynamicTestingModule,
13+
platformBrowserDynamicTesting()
14+
);
15+
// Then we find all the tests.
16+
const context = require.context('./', true, /\.spec\.ts$/);
17+
// And load the modules.
18+
context.keys().map(context);

0 commit comments

Comments
 (0)