NullInjectorError: No provider for InjectionToken ToastConfig! in jasmine spec for Angular + Electron project
Try to specify the position of toaster otherwise it will give null Inject error app.module.ts imports: [ BrowserModule, AppRoutingModule, HttpClientModule, BrowserAnimationsModule, FormsModule, BsDropdownModule.forRoot(), ToastrModule.forRoot({ positionClass :’toast-bottom-right’ }) ],