source: src/Clients/Angular/finki-chattery/src/test.ts@ 95d80e4

dev
Last change on this file since 95d80e4 was e6a6d9a, checked in by Стојков Марко <mst@…>, 3 years ago

Initialized FinkiChattery project

  • Property mode set to 100644
File size: 753 bytes
Line 
1// This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
3import 'zone.js/dist/zone-testing';
4import { getTestBed } from '@angular/core/testing';
5import {
6 BrowserDynamicTestingModule,
7 platformBrowserDynamicTesting
8} from '@angular/platform-browser-dynamic/testing';
9
10declare 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.
18getTestBed().initTestEnvironment(
19 BrowserDynamicTestingModule,
20 platformBrowserDynamicTesting()
21);
22// Then we find all the tests.
23const context = require.context('./', true, /\.spec\.ts$/);
24// And load the modules.
25context.keys().map(context);
Note: See TracBrowser for help on using the repository browser.