-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.setup.ts
More file actions
30 lines (25 loc) · 738 Bytes
/
jest.setup.ts
File metadata and controls
30 lines (25 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import 'jest-preset-angular/setup-jest';
import '@testing-library/jest-dom';
import { APP_BASE_HREF } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { configure } from '@testing-library/angular';
import { MaterialModule } from './src/app/material';
@NgModule({
providers: [
{ provide: APP_BASE_HREF, useValue : '/' },
],
})
export class TestingModule {}
configure({
defaultImports: [
TestingModule,
RouterModule.forRoot([]),
FormsModule,
ReactiveFormsModule,
HttpClientModule,
MaterialModule
],
});