Last change
on this file since 68454c6 was 30a465f, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
642 bytes
|
Line | |
---|
1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
---|
2 |
|
---|
3 | import 'zone.js/dist/zone-testing';
|
---|
4 | import { getTestBed } from '@angular/core/testing';
|
---|
5 | import {
|
---|
6 | BrowserDynamicTestingModule,
|
---|
7 | platformBrowserDynamicTesting
|
---|
8 | } from '@angular/platform-browser-dynamic/testing';
|
---|
9 |
|
---|
10 | declare const require: any;
|
---|
11 |
|
---|
12 | // First, initialize the Angular testing environment.
|
---|
13 | getTestBed().initTestEnvironment(
|
---|
14 | BrowserDynamicTestingModule,
|
---|
15 | platformBrowserDynamicTesting()
|
---|
16 | );
|
---|
17 | // Then we find all the tests.
|
---|
18 | const context = require.context('./', true, /\.spec\.ts$/);
|
---|
19 | // And load the modules.
|
---|
20 | context.keys().map(context);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.