パッケージの詳細

@hirez_io/auto-spies-core

hirezio120.1kMIT3.0.0

Create automatic spies from classes in tests, also for promises and observables, used as a common code for jasmine-auto-spies and jest-auto-spies

spies, mocks, async methods, TypeScript Tests

readme

auto-spies monorepo

All Contributors

Easy and type safe way to write spies for tests, for both sync and async (promises, Observables) returning methods.

This is the monorepo of:

Project Status Description
jasmine-auto-spies jasmine-auto-spies-status Easy and type safe way to write spies for jasmine tests
jest-auto-spies jest-auto-spies-status Easy and type safe way to write spies for jest tests



Contributing

Want to contribute? Yayy! 🎉

Please read and follow our Contributing Guidelines to learn what are the right steps to take before contributing your time, effort and code.

Thanks 🙏

Code Of Conduct

Be kind to each other and please read our code of conduct.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Shai Reznik
Shai Reznik

💻 📖 🤔 🚇 🚧 🧑‍🏫 👀 ⚠️
Bnaya Peretz
Bnaya Peretz

💻 🤔 🔧
shuebner
shuebner

💻 🤔 ⚠️
Meksi
Meksi

💻 ⚠️
Taylor Ben
Taylor Ben

🤔
Yonatan Kra
Yonatan Kra

💻
Martin Baum
Martin Baum

💻 ⚠️
Guille Eneas Timón Grau
Guille Eneas Timón Grau

💻 ⚠️
Rainer Hahnekamp
Rainer Hahnekamp

🚧
WynieCronje
WynieCronje

💻 🐛 🚧
Johannes Gest
Johannes Gest

🚧
mopinsk
mopinsk

🚧

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT

Want to learn more?

更新履歴

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.0.0 (2023-06-03)

Bug Fixes

  • types: typesafety for mocked objects/functions (d1ffbac), closes #51

BREAKING CHANGES

  • types: "mockReturnValue" for a function that returns a number no longer accepts something that's not a number

2.0.0 (2023-03-28)

chore

  • update dependencies (jest@29.5.0) (dd040ae), closes #68

BREAKING CHANGES

  • Jest v29.5.0 is required

1.6.7 (2022-01-01)

Bug Fixes

  • core: change serialize-javascript to javascript-stringify (6d02a4a), closes #55

1.6.6 (2022-01-01)

Note: Version bump only for package @hirez_io/auto-spies-core

1.6.5 (2021-12-31)

Note: Version bump only for package @hirez_io/auto-spies-core

1.6.4 (2021-06-09)

Bug Fixes

  • global: fix observable props nextWithValues not working (6fddf74), closes #49

1.6.3 (2021-06-09)

Bug Fixes

  • global: replace code-stringify with serialize-javascript (2e2f6a7), closes #50

1.6.2 (2021-02-04)

Bug Fixes

  • auto-spies-core: don't add getters to method names when creating spies from class (41e43c7), closes #40

1.6.1 (2021-01-18)

Bug Fixes

  • global: fix multi calledWith bug (777fc59), closes #39

1.6.0 (2020-12-20)

Features

  • global: add createObservableWithValues (d2966f1)

1.5.0 (2020-12-18)

Features

  • global: add nextWithValues (de3c30b), closes #20

1.4.0 (2020-12-14)

Features

  • global: modify nextWithPerCall to return subjects and complete (8d2b107)

1.3.1 (2020-12-14)

Bug Fixes

  • global: fix resolveWithPerCall delay issue (a9eb17b)

1.3.0 (2020-12-13)

Features

  • global: add resolveWithPerCall and nextWithPerCall (aaf2de8)

1.2.1 (2020-11-19)

Bug Fixes

  • global: fix null return value bug (a9bb0a9), closes #38

1.2.0 (2020-10-19)

Features

  • global: printing function name in error when mustBeCalledWith is configured (b5e0dbd), closes #27

1.1.3 (2020-10-01)

Note: Version bump only for package @hirez_io/auto-spies-core

1.1.2 (2020-09-16)

Note: Version bump only for package @hirez_io/auto-spies-core

1.1.1 (2020-09-10)

Bug Fixes

1.1.0 (2020-09-10)

Features

  • auto-spies-core: added tests (5bd3102)

1.0.2 (2020-09-08)

Note: Version bump only for package @hirez_io/auto-spies-core

1.0.1 (2020-09-08)

Note: Version bump only for package @hirez_io/auto-spies-core

1.0.0 (2020-09-08)

Note: Version bump only for package @hirez_io/auto-spies-core