Created
June 16, 2022 13:59
-
-
Save thecodinganalyst/8b56fc3eb5c9a4a85ef00d4356120bbe to your computer and use it in GitHub Desktop.
Angular TestBed Configure
This file contains 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
let store: MockStore<AppState>; | |
beforeEach(() => { | |
TestBed.configureTestingModule({ | |
declarations: [AppComponent, ItemComponent], | |
imports: [ReactiveFormsModule], | |
providers: [provideMockStore()], | |
schemas: [CUSTOM_ELEMENTS_SCHEMA] | |
}); | |
fixture = TestBed.createComponent(AppComponent); | |
app = fixture.componentInstance; | |
store = TestBed.inject(MockStore); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment