Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 2x 2x 2x 2x 2x 2x 2x 2x 2x 5x | import { NgModule } from '@angular/core';
import { EffectsModule } from '@ngrx/effects';
import { ActionReducerMap, StoreModule } from '@ngrx/store';
import { pick } from 'lodash-es';
import { CopilotConfigEffects } from './copilot-config/copilot-config.effects';
import { copilotConfigReducer } from './copilot-config/copilot-config.reducer';
import { CopilotState } from './copilot-store';
const copilotReducers: ActionReducerMap<CopilotState> = {
copilotConfig: copilotConfigReducer,
};
const copilotEffects = [CopilotConfigEffects];
@NgModule({
imports: [EffectsModule.forFeature(copilotEffects), StoreModule.forFeature('copilot', copilotReducers)],
})
export class CopilotStoreModule {
static forTesting(...reducers: (keyof ActionReducerMap<CopilotState>)[]) {
return StoreModule.forFeature('copilot', pick(copilotReducers, reducers));
}
}
|