Skip to content

Releases: vikingair/spy4js

v3.4.0 (March 30, 2022)

30 Mar 14:10
Compare
Choose a tag to compare

v3.3.0 (February 09, 2022)

30 Mar 14:09
Compare
Choose a tag to compare

v3.2.0 (November 24, 2021)

24 Nov 13:14
Compare
Choose a tag to compare

v3.1.3 (July 05, 2021)

05 Jul 08:13
Compare
Choose a tag to compare

v3.1.2 (July 01, 2021)

01 Jul 11:28
Compare
Choose a tag to compare

🎆 New features

  • Support for workspace root installs and global installs. Previously the package had to be installed inside the workspace members to work without any issues.

v3.1.0 (November 08, 2020)

08 Nov 13:23
Compare
Choose a tag to compare

🎆 New features

Spy.configure({ enforceOrder: true });

⚠️ Calling spy.hasCallHistory() without any arguments will always fail now and refers to use spy.wasNotCalled() instead if the spy wasn't called.

v3.0.0 (November 01, 2020)

01 Nov 19:10
Compare
Choose a tag to compare

Migrated to TypeScript and dropped flow support. Once more updating to the latest flow version was too exhausting.

Inspecting the TypeScript types has now become more convenient and auto import should work even smoother in your IDE, too.

💥 Breaking Changes

  • The exported Spy is not a class anymore but an extended function/callable object. So you will need to search and replace everywhere new Spy by Spy because you have to call Spy without the new keyword. This change was necessary because a SpyInstance was returned by the constructor of the Spy class, which was never really clean, but necessary when extending Function as a class.
  • Requiring node version >= 12 (but it might still work with older versions). I want to encourage you to update your node version at least to version 12 because version 14 has now become the new LTS and version 10 will be out of maintenance soon enough.

🐛 Bugfix

  • spy.getAllCallArguments was returning a wrong value, but flow didn't catch this error.

v2.10.0 (November 06, 2019)

06 Nov 08:55
Compare
Choose a tag to compare

🎆 New Feature

  • spy.getAllCallArguments: Provides a little more flexibility when observing call arguments.

v2.9.1 (November 04, 2019)

04 Nov 08:39
Compare
Choose a tag to compare

🐛 Bug Fix

  • Fixed node module resolution for Spy.mockModule

v2.9.0 (November 03, 2019)

03 Nov 17:17
Compare
Choose a tag to compare

🎆 New Feature

  • Spy.MAPPER: A nice shortcut variant of Spy.COMPARE to test the output of given function depending on some defined input. See here for more details.