The testing driver is a no-op driver intended for use in unit tests. It always returns a successful response with a short delay, without making any real HTTP requests.
Note: Use
DaffContactTestingDriverModulefor driver-level unit tests (e.g. testing effects). For component-level tests that use the facade, useMockDaffContactFacadefrom@daffodil/contact/state/testinginstead.
To set up in a test module:
DaffContactTestingDriverModule from @daffodil/contact/driver/testing.DaffContactTestingDriverModule.forRoot() in the imports of your TestBed configuration.import { TestBed } from '@angular/core/testing';
import { DaffContactTestingDriverModule } from '@daffodil/contact/driver/testing';
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
DaffContactTestingDriverModule.forRoot(),
],
});
});