catch error as string
const a = sync () => throw new Error('ERROR');expect(await a().catch(GETERR)).toEqual('ERROR');
Generated using TypeDoc
catch error as string