@kablamo/kerosene-test
``` yarn add --dev @kablamo/kerosene-test
Last updated 4 months ago by nhardy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @kablamo/kerosene-test 
SYNC missed versions from official npm registry.

???? 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

Current Tags

  • 0.0.4                                ...           latest (4 months ago)

4 Versions

  • 0.0.4                                ...           4 months ago
  • 0.0.3                                ...           6 months ago
  • 0.0.2                                ...           8 months ago
  • 0.0.1                                ...           8 months ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 5
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |