# @hirez_io/auto-spies-core

> 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

Latest version **3.0.0** (published 2023-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hirez_io/auto-spies-core
pnpm add @hirez_io/auto-spies-core
yarn add @hirez_io/auto-spies-core
bun add @hirez_io/auto-spies-core
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2023-06-03 |
| First published | 2020-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 152.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 184 |
| Author | Shai Reznik |
| Maintainers | hirez.io |
| Keywords | spies, mocks, async methods, TypeScript Tests, RxJS testing, Promises tests |

## Links

- npm: https://www.npmjs.com/package/@hirez_io/auto-spies-core
- Repository: https://github.com/hirezio/auto-spies
- Homepage: https://github.com/hirezio/auto-spies/tree/master/packages/auto-spies-core
- Issues: https://github.com/hirezio/auto-spies/issues
- npm.io page: https://npm.io/package/@hirez_io/auto-spies-core

## Dependencies (1)

- [javascript-stringify](https://npm.io/package/javascript-stringify.md) 2.1.0

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2023-06-03
- 2.0.0 — 2023-03-28
- 1.6.7 — 2022-01-01
- 1.6.6 — 2022-01-01
- 1.6.5 — 2021-12-31
- 1.6.4 — 2021-06-09
- 1.6.3 — 2021-06-09
- 1.6.2 — 2021-02-04
- 1.6.1 — 2021-01-18
- 1.6.0 — 2020-12-20
- 1.5.0 — 2020-12-18
- 1.4.0 — 2020-12-14
- 1.3.1 — 2020-12-14
- 1.3.0 — 2020-12-13
- 1.2.1 — 2020-11-19
- … 7 more at https://npm.io/package/@hirez_io/auto-spies-core/versions

## README

# auto-spies monorepo

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

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]][jasmine-auto-spies-package] | Easy and type safe way to write spies for jasmine tests |
| [jest-auto-spies]    | [![jest-auto-spies-status]][jest-auto-spies-package]       | Easy and type safe way to write spies for jest tests    |

[jasmine-auto-spies]: https://github.com/hirezio/auto-spies/tree/master/packages/jasmine-auto-spies
[jasmine-auto-spies-status]: https://img.shields.io/npm/v/jasmine-auto-spies.svg
[jasmine-auto-spies-package]: https://npmjs.com/package/jasmine-auto-spies
[jest-auto-spies]: https://github.com/hirezio/auto-spies/tree/master/packages/jest-auto-spies
[jest-auto-spies-status]: https://img.shields.io/npm/v/jest-auto-spies.svg
[jest-auto-spies-package]: https://npmjs.com/package/jest-auto-spies

<br/>

<div>
  <a href="https://twitter.com/angular/status/1318492030016884736">
    <img src="https://user-images.githubusercontent.com/1430726/97088487-c9d41b00-1639-11eb-814f-2c2c7258448e.png"
      alt="Angular Tweet about Jasmine-auto-spies"
      width="500"
    />
  </a>
</div>

<br/>

## Contributing

Want to contribute? Yayy! 🎉

Please read and follow our [Contributing Guidelines](CONTRIBUTING.md) 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](CODE_OF_CONDUCT.md).

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tbody>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="http://www.hirez.io/"><img src="https://avatars1.githubusercontent.com/u/1430726?v=4?s=100" width="100px;" alt="Shai Reznik"/><br /><sub><b>Shai Reznik</b></sub></a><br /><a href="https://github.com/hirezio/auto-spies/commits?author=shairez" title="Code">💻</a> <a href="https://github.com/hirezio/auto-spies/commits?author=shairez" title="Documentation">📖</a> <a href="#ideas-shairez" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-shairez" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-shairez" title="Maintenance">🚧</a> <a href="#mentoring-shairez" title="Mentoring">🧑‍🏫</a> <a href="https://github.com/hirezio/auto-spies/pulls?q=is%3Apr+reviewed-by%3Ashairez" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/hirezio/auto-spies/commits?author=shairez" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Bnaya"><img src="https://avatars0.githubusercontent.com/u/1304862?v=4?s=100" width="100px;" alt="Bnaya Peretz"/><br /><sub><b>Bnaya Peretz</b></sub></a><br /><a href="https://github.com/hirezio/auto-spies/commits?author=Bnaya" title="Code">💻</a> <a href="#ideas-Bnaya" title="Ideas, Planning, & Feedback">🤔</a> <a href="#tool-Bnaya" title="Tools">🔧</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/shuebner"><img src="https://avatars0.githubusercontent.com/u/1770684?v=4?s=100" width="100px;" alt="shuebner"/><br /><sub><b>shuebner</b></sub></a><br /><a href="https://github.com/hirezio/auto-spies/commits?author=shuebner" title="Code">💻</a> <a href="#ideas-shuebner" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/hirezio/auto-spies/commits?author=shuebner" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://dev-front.herokuapp.com/"><img src="https://avatars0.githubusercontent.com/u/5671930?v=4?s=100" width="100px;" alt="Meksi"/><br /><sub><b>Meksi</b></sub></a><br /><a href="https://github.com/hirezio/auto-spies/commits?author=meksof" title="Code">💻</a> <a href="https://github.com/hirezio/auto-spies/commits?author=meksof" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/taylor-ben"><img src="https://avatars0.githubusercontent.com/u/37868849?v=4?s=100" width="100px;" alt="Taylor Ben"/><br /><sub><b>Taylor Ben</b></sub></a><br /><a href="#ideas-taylor-ben" title="Ideas, Planning, & Feedback">🤔</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://yonatankra.com/"><img src="https://avatars0.githubusercontent.com/u/6459899?v=4?s=100" width="100px;" alt="Yonatan Kra"/><br /><sub><b>Yonatan Kra</b></sub></a><br /><a href="https://github.com/hirezio/auto-spies/commits?author=YonatanKra" title="Code">💻</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://www.treestructure.net/"><img src="https://avatars3.githubusercontent.com/u/780083?v=4?s=100" width="100px;" alt="Martin Baum"/><br /><sub><b>Martin Baum</b></sub></a><br /><a href="https://github.com/hirezio/auto-spies/commits?author=treestructure" title="Code">💻</a> <a href="https://github.com/hirezio/auto-spies/commits?author=treestructure" title="Tests">⚠️</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/GuilleEneas"><img src="https://avatars0.githubusercontent.com/u/5407478?v=4?s=100" width="100px;" alt="Guille Eneas Timón Grau"/><br /><sub><b>Guille Eneas Timón Grau</b></sub></a><br /><a href="https://github.com/hirezio/auto-spies/commits?author=GuilleEneas" title="Code">💻</a> <a href="https://github.com/hirezio/auto-spies/commits?author=GuilleEneas" title="Tests">⚠️</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://www.rainerhahnekamp.com"><img src="https://avatars.githubusercontent.com/u/5721205?v=4?s=100" width="100px;" alt="Rainer Hahnekamp"/><br /><sub><b>Rainer Hahnekamp</b></sub></a><br /><a href="#maintenance-rainerhahnekamp" title="Maintenance">🚧</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/WynieCronje"><img src="https://avatars.githubusercontent.com/u/4537265?v=4?s=100" width="100px;" alt="WynieCronje"/><br /><sub><b>WynieCronje</b></sub></a><br /><a href="https://github.com/hirezio/auto-spies/commits?author=WynieCronje" title="Code">💻</a> <a href="https://github.com/hirezio/auto-spies/issues?q=author%3AWynieCronje" title="Bug reports">🐛</a> <a href="#maintenance-WynieCronje" title="Maintenance">🚧</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/gestj"><img src="https://avatars.githubusercontent.com/u/6358771?v=4?s=100" width="100px;" alt="Johannes Gest"/><br /><sub><b>Johannes Gest</b></sub></a><br /><a href="#maintenance-gestj" title="Maintenance">🚧</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/mopinsk"><img src="https://avatars.githubusercontent.com/u/29751071?v=4?s=100" width="100px;" alt="mopinsk"/><br /><sub><b>mopinsk</b></sub></a><br /><a href="#maintenance-mopinsk" title="Maintenance">🚧</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/strawberry-choco"><img src="https://avatars.githubusercontent.com/u/20382692?v=4?s=100" width="100px;" alt="strawberry-choco"/><br /><sub><b>strawberry-choco</b></sub></a><br /><a href="#maintenance-strawberry-choco" title="Maintenance">🚧</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/jpgoelz"><img src="https://avatars.githubusercontent.com/u/32487587?v=4?s=100" width="100px;" alt="Jan Philipp Gölz"/><br /><sub><b>Jan Philipp Gölz</b></sub></a><br /><a href="#maintenance-jpgoelz" title="Maintenance">🚧</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Sam-Watson-LeanIX"><img src="https://avatars.githubusercontent.com/u/60933998?v=4?s=100" width="100px;" alt="Sam-Watson-LeanIX"/><br /><sub><b>Sam-Watson-LeanIX</b></sub></a><br /><a href="#maintenance-Sam-Watson-LeanIX" title="Maintenance">🚧</a></td>
    </tr>
  </tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

## License

MIT

## Want to learn more?

<div align="center">
  <a href="https://hirez.io?utm_medium=Open_Source&utm_source=Github&utm_campaign=Lead_Generation&utm_content=auto_spies_readme_banner">
    <img src="for-readme/test-angular.jpg"
      alt="TestAngular.com - Free Angular Testing Workshop - The Roadmap to Angular Testing Mastery"
      width="600"
    />
  </a>
</div>

---
_Source: https://npm.io/package/@hirez_io/auto-spies-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
