Socket
Book a DemoInstallSign in
Socket

@getcircuit/reactivity

Package Overview
Dependencies
Maintainers
19
Versions
338
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@getcircuit/reactivity

unpublished
latest
npmnpm
Version
15.18.0
Version published
Maintainers
19
Created
Source

Reactivity

Subset of Solid's reactive utilities used by Circuit to load nested hierarchical data.

Test Utils

Some test-related utils are exported from the test-utils entrypoint.

import {
  waitLoadedAccessor,
  waitSignal,
  spySignal,
} from '@circuit/reactivity/test-utils'
  • waitSignal(signal, condition) is a function that returns a promise that resolves when the given LoadableSignal is called and the given condition is met.

  • waitLoadedAccessor(signal) is a function that returns a promise that resolves when the given LoadableAccessor is loaded. This is useful when you want to guarantee that a test is waiting for an LoadableAccessor to be loaded.

  • spySignal(signal) is a function that returns a jest.Mock that is spying on the given LoadableAccessor. This is useful when you want to verify that a signal has been called after any of its dependencies were updated.

FAQs

Package last updated on 29 Jan 2024

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