Nearly Perpendicular Macaroons

    @kablamo/kerosene-test
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.10 • Public • Published

    🔥 Kerosene-test

    yarn add --dev @kablamo/kerosene-test
    
    npm install --save-dev @kablamo/kerosene-test
    

    Available Functions

    React

    createStubComponent(displayName, functional?, getRenderProps?, transformRenderProps?)

    Creates a StubComponent for unit testing.

    createStubContext(displayName, getter?)

    Creates a stub React Context for unit testing.

    Stubs

    createStubStyles(classNames, values?)

    Returns an object mapping local classNames to faked global equivalents along with any exported values.

    stubProperties(target, properties)

    Stubs properties on the target object, and returns a function which restores them to their original values.

    Available TypeScript Types

    Jest

    JestMock<T>

    Shorthand for jest.Mock<ReturnType<T>, Parameters<T>>;.

    JestSpied<T>

    Shorthand for jest.SpyInstance<ReturnType<T>, Parameters<T>>;.

    Sinon

    SinonSpied<T>

    Shorthand for sinon.SinonSpy<Parameters<T>, ReturnType<T>>;.

    SinonStubbed<T>

    Shorthand for sinon.SinonStub<Parameters<T>, ReturnType<T>>;.


    kablamo.com.au

    Install

    npm i @kablamo/kerosene-test

    DownloadsWeekly Downloads

    261

    Version

    0.0.10

    License

    MIT

    Unpacked Size

    24.4 kB

    Total Files

    27

    Last publish

    Collaborators

    • brycehanscomb
    • nhardy
    • walesey
    • glie163
    • ojkelly
    • kablamo-deployments