imng-ngrx-utils
Version:
This library was generated with [Nx](https://nx.dev).
25 lines (21 loc) • 676 B
JavaScript
import { firstValueFrom, lastValueFrom, toArray } from 'rxjs';
function readFirst(o) {
return firstValueFrom(o); //NOSONAR
}
function readAll(o) {
return lastValueFrom(o.pipe(toArray())); //NOSONAR
}
function mockConsoleError() {
return jest.spyOn(console, 'error').mockImplementation();
}
function mockConsoleWarn() {
return jest.spyOn(console, 'warn').mockImplementation();
}
function mockConsoleGroup() {
return jest.spyOn(console, 'group').mockImplementation();
}
/**
* Generated bundle index. Do not edit.
*/
export { mockConsoleError, mockConsoleGroup, mockConsoleWarn, readAll, readFirst };
//# sourceMappingURL=imng-ngrx-utils-testing.mjs.map