import { createNodeAllocationActions , createReplicasAction , createSavePolicyAction , } from '../../../helpers' ; import { initTestBed } from '../../init_test_bed' ; type SetupReturn = ReturnType < typeof setupGeneralNodeAllocation > ; export type GeneralNodeAllocationTestBed = SetupReturn extends Promise < infer U > ? U : SetupReturn ; export const setupGeneralNodeAllocation = async ( ) => { const testBed = await initTestBed ( ) ; return { ... testBed , actions : { ... createNodeAllocationActions ( testBed , 'warm' ) , savePolicy : createSavePolicyAction ( testBed ) , ... createReplicasAction ( testBed , 'warm' ) , } , } ; } ;