import { UnknownError } from '../src/task' ; export const jestAssertNever = ( cb ) => ( obj ) => cb ( 'this should never happen' , obj ) ; export const jestAssertUntypedNeverCalled = ( cb ) => ( obj ) => cb ( 'this should never happen' , obj ) ; export const assertFork = < T > ( cb , fn ) => ( obj ) => { try { fn ( obj ) ; cb ( ) ; } catch ( err ) { cb ( err ) ; } } ;