Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

test-setup.ts

18 lines488 Bytes

1import '@analogjs/vitest-angular/setup-snapshots'
2​
3import { NgModule, provideZonelessChangeDetection } from '@angular/core'
4import {
5 BrowserTestingModule,
6 platformBrowserTesting,
7} from '@angular/platform-browser/testing'
8import { getTestBed } from '@angular/core/testing'
9​
10@NgModule({
11 providers: [provideZonelessChangeDetection()],
12})
13export class ZonelessTestModule {}
14​
15getTestBed().initTestEnvironment(
16 [BrowserTestingModule, ZonelessTestModule],
17 platformBrowserTesting(),