import { createReadySignal , ReadySignal } from './ready_signal' ; describe ( 'ReadySignal' , ( ) => { let readySignal ; beforeEach ( ( ) => { readySignal = createReadySignal < number > ( ) ; } ) ; test ( 'works as expected' , async ( ) => { readySignal . signal ( 42 ) ; const ready = await readySignal . wait ( ) ; expect ( ready ) . toBe ( 42 ) ; } ) ; } ) ;