Function GETERR

  • catch error as string

    const a = sync () => throw new Error('ERROR');
    expect(await a().catch(GETERR)).toEqual('ERROR');

    Parameters

    • e: any

    Returns string

Generated using TypeDoc