Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
788 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/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: {
|
---|
11 | context(path: string, deep?: boolean, filter?: RegExp): {
|
---|
12 | keys(): string[];
|
---|
13 | <T>(id: string): T;
|
---|
14 | };
|
---|
15 | };
|
---|
16 |
|
---|
17 | // First, initialize the Angular testing environment.
|
---|
18 | getTestBed().initTestEnvironment(
|
---|
19 | BrowserDynamicTestingModule,
|
---|
20 | platformBrowserDynamicTesting(),
|
---|
21 | { teardown: { destroyAfterEach: true }},
|
---|
22 | );
|
---|
23 |
|
---|
24 | // Then we find all the tests.
|
---|
25 | const context = require.context('./', true, /\.spec\.ts$/);
|
---|
26 | // And load the modules.
|
---|
27 | context.keys().map(context);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.