{"id":13660676,"url":"https://github.com/Typescript-TDD/ts-auto-mock","last_synced_at":"2025-04-24T23:30:41.874Z","repository":{"id":37663454,"uuid":"163857569","full_name":"Typescript-TDD/ts-auto-mock","owner":"Typescript-TDD","description":"Typescript transformer to unlock automatic mock creation for interfaces and classes","archived":false,"fork":false,"pushed_at":"2024-10-29T09:07:37.000Z","size":39805,"stargazers_count":600,"open_issues_count":29,"forks_count":16,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T10:56:50.851Z","etag":null,"topics":["automatic","fake","mock","mocking","testing","typescript","typescript-transformer"],"latest_commit_sha":null,"homepage":"https://typescript-tdd.github.io/ts-auto-mock","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Typescript-TDD.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/contributing.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"uittorio"}},"created_at":"2019-01-02T15:24:32.000Z","updated_at":"2024-10-29T09:07:40.000Z","dependencies_parsed_at":"2024-01-26T11:46:50.263Z","dependency_job_id":"ab0ae76d-1493-4dc3-a60d-fe9131c14b1b","html_url":"https://github.com/Typescript-TDD/ts-auto-mock","commit_stats":{"total_commits":1548,"total_committers":20,"mean_commits":77.4,"dds":0.5439276485788114,"last_synced_commit":"57994c5ca8a3730bd547e48ae0a5cbc01b169528"},"previous_names":["uittorio/ts-auto-mock"],"tags_count":109,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Typescript-TDD%2Fts-auto-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Typescript-TDD%2Fts-auto-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Typescript-TDD%2Fts-auto-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Typescript-TDD%2Fts-auto-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Typescript-TDD","download_url":"https://codeload.github.com/Typescript-TDD/ts-auto-mock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250727441,"owners_count":21477316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automatic","fake","mock","mocking","testing","typescript","typescript-transformer"],"created_at":"2024-08-02T05:01:24.451Z","updated_at":"2025-04-24T23:30:39.458Z","avatar_url":"https://github.com/Typescript-TDD.png","language":"TypeScript","funding_links":["https://github.com/sponsors/uittorio"],"categories":["TypeScript"],"sub_categories":[],"readme":"# TS auto mock\n\n![Test](https://github.com/Typescript-TDD/ts-auto-mock/workflows/Test/badge.svg)\n[![npm version](https://badge.fury.io/js/ts-auto-mock.svg)](https://badge.fury.io/js/ts-auto-mock)\n[![Downloads](https://img.shields.io/npm/dw/ts-auto-mock.svg)](https://www.npmjs.com/package/ts-auto-mock)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n![GitHub Sponsor](https://img.shields.io/github/sponsors/uittorio?label=sponsor\u0026logo=GitHub)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n![Slack](docs/slack_small.png) Need help? Join us\non [Slack](https://join.slack.com/t/typescripttdd/shared_invite/enQtODk3MjQwNzUwNTk2LTMzNjdlZTNmMmY3Nzg2NDNiZDA1YzJmZjk2NjcwZjQwODQ3YzE5NGZjM2Q4MzZjYWNiMWE4MGU0NjEzM2E5YzE)\n\n# :warning: This repository is now no longer maintained for new features development :warning:\n\nA few years ago we've created this project with the idea in mind that typescript transformers would be easier\nto\nconfigure.\n\nUnfortunately the typescript team has no intention to improve the developer experience. You can see more information at\nthis [link](https://github.com/Microsoft/TypeScript/issues/14419).\n\nWe believe that stop developing new features is the best decision to inform who is currently using it and who\nfind it for the first time.\n\nWe will keep fixing bugs and vulnerability.\n\nOther reasons why this library might not be for you:\n\n- Typescript transformers works only when using the tsc typescript compiler. If you are using esbuild or swc you will\n  not\n  be able to use this library.\n- Test double are a double-edge sword. They have to be used carefully and at the right time. Increasing the number of\n  test doubles could decrease the value of your tests. The amount of configuration required by this library might not\n  justify the amount of test doubles that your application requires.\n\nA TypeScript transformer that will allow you to create mocks for any types (interfaces, classes, etc.) without the need\nto create manual fakes/mocks.\n\n## [API Documentation](https://typescript-tdd.github.io/ts-auto-mock)\n\n#### [Installation](https://typescript-tdd.github.io/ts-auto-mock/installation)\n\n#### [Usage](https://typescript-tdd.github.io/ts-auto-mock/create-mock)\n\n#### Quick overview\n\n```ts\nimport { createMock } from 'ts-auto-mock';\n\ninterface Person {\n    id: string;\n\n    getName(): string;\n\n    details: {\n        phone: number\n    }\n}\n\nconst mock = createMock\u003cPerson\u003e();\nmock.id // \"\"\nmock.getName() // \"\"\nmock.details // \"{ phone: 0 }\"\n```\n\n* If you are interested to use it with jasmine please go\n  to [jasmine-ts-auto-mock](https://github.com/Typescript-TDD/jasmine-ts-auto-mock)\n* If you are interested to use it with jest please go\n  to [jest-ts-auto-mock](https://github.com/Typescript-TDD/jest-ts-auto-mock)\n\n## Changelog\n\nFind the changelog here: [Changelog](CHANGELOG.md).\n\n## Roadmap\n\nYou can find the roadmap of this project on the Wiki\npage: [Roadmap](https://github.com/Typescript-TDD/ts-auto-mock/wiki/Roadmap).\n\n## Do you want to contribute?\n\n* [Check how to make changes to the code base](https://typescript-tdd.github.io/ts-auto-mock/local-development)\n\n## Authors\n\n* [**Vittorio Guerriero**](https://github.com/uittorio)\n* [**Giulio Caprino**](https://github.com/pmyl)\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/artem1458\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/33227963?v=4?s=60\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eArtem Kornev\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/issues?q=author%3Aartem1458\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/commits?author=artem1458\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/wassy92x\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/12649037?v=4?s=60\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eFabian\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/issues?q=author%3Awassy92x\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/commits?author=wassy92x\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://www.geoffreytestelin.com/\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/10194542?v=4?s=60\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGeoffrey 'C0ZEN' Testelin\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/issues?q=author%3AC0ZEN\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/commits?author=C0ZEN\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#ideas-C0ZEN\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"#tool-C0ZEN\" title=\"Tools\"\u003e🔧\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Pmyl\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/16228209?v=4?s=60\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGiulio Caprino\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#question-Pmyl\" title=\"Answering Questions\"\u003e💬\u003c/a\u003e \u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/commits?author=Pmyl\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/commits?author=Pmyl\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#ideas-Pmyl\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"#infra-Pmyl\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"#maintenance-Pmyl\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"#projectManagement-Pmyl\" title=\"Project Management\"\u003e📆\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/marcmrf\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/9928519?v=4?s=60\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMarc\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/issues?q=author%3Amarcmrf\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/commits?author=marcmrf\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://www.martinjlowm.dk/\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/110860?v=4?s=60\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMartin Jesper Low Madsen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/issues?q=author%3Amartinjlowm\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/commits?author=martinjlowm\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#ideas-martinjlowm\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://uittorio.github.io/\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/17477623?v=4?s=60\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eVittorio Guerriero\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#question-uittorio\" title=\"Answering Questions\"\u003e💬\u003c/a\u003e \u003ca href=\"https://github.com/typescripttdd/ts-auto-mock/commits?author=uittorio\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#ideas-uittorio\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"#infra-uittorio\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"#maintenance-uittorio\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"#projectManagement-uittorio\" title=\"Project Management\"\u003e📆\u003c/a\u003e \u003ca href=\"#tool-uittorio\" title=\"Tools\"\u003e🔧\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.\nContributions of any kind welcome!\n\n## Sponsor ✨\n\nThanks to these people\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/muk-ai\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/3153823?v=4\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\n        \u003csub\u003e\n            \u003cb\u003eKenta Mukai\u003c/b\u003e\n        \u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTypescript-TDD%2Fts-auto-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTypescript-TDD%2Fts-auto-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTypescript-TDD%2Fts-auto-mock/lists"}