@kablamo/kerosene-test
``` yarn add --dev @kablamo/kerosene-test
Last updated a month ago by kablamo-deployments .
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.8                                ...           latest (a month ago)

8 Versions

  • 0.0.8                                ...           a month ago
  • 0.0.7                                ...           4 months ago
  • 0.0.6                                ...           5 months ago
  • 0.0.5                                ...           5 months ago
  • 0.0.4                                ...           9 months ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 10
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |