| 123456789101112131415161718192021222324 |
- import 'zone.js/dist/zone-testing';
- import './test-setup'; // Patch global
- import { getTestBed } from '@angular/core/testing';
- import {
- BrowserDynamicTestingModule,
- platformBrowserDynamicTesting
- } from '@angular/platform-browser-dynamic/testing';
- declare const require: {
- context(path: string, deep?: boolean, filter?: RegExp): {
- keys(): string[];
- <T>(id: string): T;
- };
- };
- // Initialisation Angular
- getTestBed().initTestEnvironment(
- BrowserDynamicTestingModule,
- platformBrowserDynamicTesting()
- );
- // Charger tous les tests
- const context = require.context('./', true, /\.spec\.ts$/);
- context.keys().map(context);
|