Socket
Socket
Sign inDemoInstall

spy4js

Package Overview
Dependencies
1
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
8Next

4.0.0

Diff

Changelog

Source

[4.0.0] - 2024-05-16

Added

  • Support for vitest and jest ESM mode
  • Spy.setup to set up the library
  • Added section about bun test in documentation

Changed

  • Spy.mockModule removed
  • Spy.mockReactComponents changed first param type
  • side effects removed: Spy.setup needs to be invoked
  • default configs changed:
    • enforceOrder: false -> true
    • useGenericReactMocks: false -> true
    • useOwnEquals: true -> false
  • Spy.on, Spy.mock and Spy.mockReactComponents are now type safe

For more detailed information please see Migration Guide v4

vluft
published 4.0.0-beta.3 •

vluft
published 4.0.0-beta.2 •

vluft
published 4.0.0-beta.1 •

vluft
published 4.0.0-beta.0 •

vluft
published 3.4.1 •

Changelog

Source

[3.4.1] - 2022-05-25

Fixed

  • Only use generated TS declaration files instead of sources to avoid TS errors in peers.
vluft
published 3.4.0 •

Changelog

Source

[3.4.0] - 2022-03-30

Added

  • spy.hasProps to check for current props.
vluft
published 3.3.2 •

Changelog

Source

[3.3.2] - 2022-03-21

Fixed

  • Generic React mocks were causing issues due to illegal named properties.
vluft
published 3.3.1 •

Changelog

Source

[3.3.1] - 2022-02-11

Fixed

  • Support nested describe suites when using mocks.
vluft
published 3.3.0 •

Changelog

Source

[3.3.0] - 2022-02-09

Added

2345
8Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc