Socket
Book a DemoInstallSign in
Socket

@kablamo/kerosene-test

Package Overview
Dependencies
Maintainers
6
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kablamo/kerosene-test

``` yarn add --dev @kablamo/kerosene-test

0.0.20
latest
Source
npmnpm
Version published
Weekly downloads
179
-19.37%
Maintainers
6
Weekly downloads
 
Created
Source

🔥 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.

createQueryObserverBaseResult(queryKey?)

Creates a fake query observer result useful for mocking React Query.

createQueryObserverSuccessResult(data, queryKey?)

Creates a fake query observer success result useful for mocking React Query.

createQueryObserverRefetchErrorResult(data, error, queryKey?)

Creates a fake query observer refetch error result useful for mocking React Query.

createQueryObserverLoadingErrorResult(error, queryKey?)

Creates a fake query observer loading error result useful for mocking React Query.

createQueryObserverLoadingResult(queryKey?)

Creates a fake query observer loading result useful for mocking React Query.

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<OverloadedReturnType<T>, OverloadedParameters<T>> & T;.

JestSpied<T>

Shorthand for jest.SpyInstance<OverloadedReturnType<T>, OverloadedParameters<T>> & T;.

Sinon

SinonSpied<T>

Shorthand for sinon.SinonSpy<OverloadedParameters<T>, OverloadedReturnType<T>> & T;.

SinonStubbed<T>

Shorthand for sinon.SinonStub<OverloadedParameters<T>, OverloadedReturnType<T>> & T;.

kablamo.com.au

Keywords

jest

FAQs

Package last updated on 02 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.