Noosphere Possibilities Maximized

    @guardian/jest-to-be-hint
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.0 • Public • Published

    @guardian/jest-to-be-hint

    import { toBeHint } from 'jest-to-be-hint';
    expect.extend({ toBeHint });
    
    expect('foo').toBeHint('bar', 'bar was not foo');
    

    A Jest extension to support hint text on failure.

    The initial motivation is for better error reporting in table-driven tests, but it should be generally useful whenever you have multiple assertions within a single test.

    Keywords

    none

    Install

    npm i @guardian/jest-to-be-hint

    DownloadsWeekly Downloads

    0

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    152 kB

    Total Files

    10

    Last publish

    Collaborators

    • georgeblahblah
    • idris-elliott-guardian
    • pete_f
    • novembertang
    • ab-gnm
    • yusuf.faraji
    • joecowton1
    • alinaboghiu.g
    • robertkenny_gu
    • jamesgorrie
    • oliverlloyd
    • arelra
    • marjank
    • jamieb-gu
    • zekehg
    • rtyley
    • dlawes
    • ghaberis
    • jsherbert
    • david.furey.gu
    • guardian-developers
    • simonadcock-gu
    • akash1810
    • reetta
    • ajwl
    • tomrf1
    • mchv
    • itsibitzi
    • justinpinner
    • nicl
    • philmcmahon
    • tjmw
    • thaliasilver
    • sndrs
    • sam.hession
    • jfsoul
    • 0x101
    • frankie_hammond
    • aoifemcl15
    • mxdvl
    • rhysmills
    • jacobwinch
    • annabeddow
    • michaelclapham_gnm
    • olly.namey.guardian