
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
ts-auto-mock
Advanced tools
Typescript transformer to unlock automatic mock creation for interfaces and classes
Need help? Join us
on Slack
A few years ago we've created this project with the idea in mind that typescript transformers would be easier to configure.
Unfortunately the typescript team has no intention to improve the developer experience. You can see more information at this link.
We believe that stop developing new features is the best decision to inform who is currently using it and who find it for the first time.
We will keep fixing bugs and vulnerability.
Other reasons why this library might not be for you:
A TypeScript transformer that will allow you to create mocks for any types (interfaces, classes, etc.) without the need to create manual fakes/mocks.
import { createMock } from 'ts-auto-mock';
interface Person {
id: string;
getName(): string;
details: {
phone: number
}
}
const mock = createMock<Person>();
mock.id // ""
mock.getName() // ""
mock.details // "{ phone: 0 }"
Find the changelog here: Changelog.
You can find the roadmap of this project on the Wiki page: Roadmap.
Thanks goes to these wonderful people (emoji key):
Artem Kornev 🐛 💻 | Fabian 🐛 💻 | Geoffrey 'C0ZEN' Testelin 🐛 💻 🤔 🔧 | Giulio Caprino 💬 💻 📖 🤔 🚇 🚧 📆 | Marc 🐛 💻 | Martin Jesper Low Madsen 🐛 💻 🤔 | Vittorio Guerriero 💬 💻 🤔 🚇 🚧 📆 🔧 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Thanks to these people
|
Kenta Mukai |
This project is licensed under the MIT License
FAQs
Typescript transformer to unlock automatic mock creation for interfaces and classes
The npm package ts-auto-mock receives a total of 42,538 weekly downloads. As such, ts-auto-mock popularity was classified as popular.
We found that ts-auto-mock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.