Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spy4js

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spy4js - npm Package Versions

1
8

2.1.0

Diff

Changelog

Source

[2.1.0] - 2018-11-12

Added

  • Added scopes to mocks: You may use different mocks within different describe blocks.
vluft
published 2.0.0 •

Changelog

Source

[2.0.0] - 2018-11-11

Added

  • Migration Guide
  • Spy.mock: Create mocks for more control, clarity and developer comfort
  • Spy.initMocks: Hereby your created mocks are initialized (but you do need to call it manually)
  • Default Test Suite Hooks: beforeEach(Spy.initMocks) and afterEach(Spy.restoreAll) are applied to each test suite automatically as soon as you use any spies. (very small runtime overhead)
vluft
published 1.9.1 •

vluft
published 1.9.0 •

Changelog

Source

[1.9.0] - 2018-11-08

Added

  • spy.returns reduces the overhead when resolving promises for e.g. any spied async functions
  • spy.rejects reduces the overhead when rejecting promises for e.g. any spied async functions
vluft
published 1.8.1 •

vluft
published 1.8.0 •

Changelog

Source

[1.8.0] - 2018-10-22

Added

  • Spy.COMPARE to apply custom comparators into arbitrary nested objects to make any equality assumptions.

Changed

  • spy.hasCallHistory has now a slightly optimized error messages.
vluft
published 1.7.1 •

vluft
published 1.7.0 •

Changelog

Source

[1.7.0] - 2018-09-13

Changed

  • spy.hasCallHistory has now a slightly modified interface.
  • Improved error visualisation for spy.hasCallHistory and spy.wasCalled
vluft
published 1.6.2 •

vluft
published 1.6.1 •

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc