Created
December 6, 2018 23:17
-
-
Save adover/8211925eff52191ea53de77640eb2922 to your computer and use it in GitHub Desktop.
ChangeDetectionOnPush is a pain to unit test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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