import { registerTestBed , AsyncTestBedConfig } from '@kbn/test/jest' ; import { PolicyAdd } from '../../../public/application/sections/policy_add' ; import { formSetup , PolicyFormTestSubjects } from './policy_form.helpers' ; import { WithAppDependencies } from './setup_environment' ; const testBedConfig = { memoryRouter : { initialEntries : [ '/add_policy' ] , componentRoutePath : '/add_policy' , } , doMountAsync : true , } ; const initTestBed = registerTestBed < PolicyFormTestSubjects > ( WithAppDependencies ( PolicyAdd ) , testBedConfig ) ; export const setup = formSetup . bind ( null , initTestBed ) ;