Skip to content

Instantly share code, notes, and snippets.

@adover
Created December 6, 2018 23:17
Show Gist options
  • Save adover/8211925eff52191ea53de77640eb2922 to your computer and use it in GitHub Desktop.
Save adover/8211925eff52191ea53de77640eb2922 to your computer and use it in GitHub Desktop.
ChangeDetectionOnPush is a pain to unit test
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [FormsModule, ReactiveFormsModule],
declarations: [FormComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.overrideComponent(FormComponent, {
set: { changeDetection: ChangeDetectionStrategy.Default },
})
.compileComponents();
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment