import { getConfig as getDOMTestingLibraryConfig } from '@testing-library/dom' ; /**
 * Wrap an internal Promise
 */ export function wrapAsync < R , P extends ( ( ) => Promise < R > ) | ( ( ) => R ) > ( implementation ) { return getDOMTestingLibraryConfig ( ) . asyncWrapper ( implementation ) ; }