Function GETERR$

  • catch error as { error: string }

    const a = sync () => throw new Error('ERROR');
    expect(await a().catch(GETERR$)).toEqual({ error:'ERROR' })

    Parameters

    • e: any

    Returns { error: string }

    • error: string

Generated using TypeDoc