-
-
Notifications
You must be signed in to change notification settings - Fork 287
Closed
Description
I was not able to create a PR:
Update the content of analog/packages/vitest-angular/README.md
from:
If you are using Zoneless
change detection, use the following setup:
import '@analogjs/vitest-angular/setup-snapshots';
import {
provideExperimentalZonelessChangeDetection,
NgModule,
} from '@angular/core';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting,
} from '@angular/platform-browser-dynamic/testing';
import { getTestBed } from '@angular/core/testing';
@NgModule({
providers: [provideExperimentalZonelessChangeDetection()],
})
export class ZonelessTestModule {}
getTestBed().initTestEnvironment(
[BrowserDynamicTestingModule, ZonelessTestModule],
platformBrowserDynamicTesting(),
);
to:
If you are using Zoneless
change detection, use the following setup:
import '@analogjs/vitest-angular/setup-snapshots';
import {
provideZonelessChangeDetection,
NgModule,
} from '@angular/core';
import { BrowserTestingModule, platformBrowserTesting } from '@angular/platform-browser/testing';
import { getTestBed } from '@angular/core/testing';
@NgModule({
providers: [provideZonelessChangeDetection()],
})
export class ZonelessTestModule {}
zoneless is not experimental.
getTestBed().initTestEnvironment(
[BrowserTestingModule, ZonelessTestModule],
platformBrowserTesting(),
);
Metadata
Metadata
Assignees
Labels
No labels