{"id":13441699,"url":"https://github.com/kulshekhar/ts-jest","last_synced_at":"2025-05-12T18:45:20.399Z","repository":{"id":37550398,"uuid":"66944590","full_name":"kulshekhar/ts-jest","owner":"kulshekhar","description":"A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.","archived":false,"fork":false,"pushed_at":"2025-05-05T15:53:28.000Z","size":183239,"stargazers_count":7028,"open_issues_count":74,"forks_count":458,"subscribers_count":31,"default_branch":"main","last_synced_at":"2025-05-05T16:04:06.364Z","etag":null,"topics":["jest","testing","typescript"],"latest_commit_sha":null,"homepage":"https://kulshekhar.github.io/ts-jest","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/kulshekhar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-30T13:47:17.000Z","updated_at":"2025-05-04T15:51:19.000Z","dependencies_parsed_at":"2023-11-09T12:51:27.623Z","dependency_job_id":"77cb9f34-0abd-4bd5-ba8d-d31a20abfae0","html_url":"https://github.com/kulshekhar/ts-jest","commit_stats":{"total_commits":3674,"total_committers":185,"mean_commits":19.85945945945946,"dds":0.7299945563418617,"last_synced_commit":"43bba108af80ef9821f9d2f662202d9f6b4e1a34"},"previous_names":[],"tags_count":173,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulshekhar%2Fts-jest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulshekhar%2Fts-jest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulshekhar%2Fts-jest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulshekhar%2Fts-jest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kulshekhar","download_url":"https://codeload.github.com/kulshekhar/ts-jest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252596432,"owners_count":21773846,"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":["jest","testing","typescript"],"created_at":"2024-07-31T03:01:37.133Z","updated_at":"2025-05-12T18:45:20.348Z","avatar_url":"https://github.com/kulshekhar.png","language":"TypeScript","funding_links":[],"categories":["HarmonyOS","TypeScript",":question: FAQ","Packages","Typescript","测试","typescript","Testing"],"sub_categories":["Windows Manager","What additional dependencies are included in this template?","Processor","macros","Component"],"readme":"\u003ch1 align=\"center\"\u003ets-jest\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eA Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ts-jest\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/ts-jest/latest.svg?style=flat-square\" alt=\"NPM version\" /\u003e \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ts-jest\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/ts-jest.svg?style=flat-square\" alt=\"NPM downloads\"/\u003e \u003c/a\u003e\n  \u003ca href=\"https://snyk.io/test/github/kulshekhar/ts-jest\"\u003e\u003cimg src=\"https://snyk.io/test/github/kulshekhar/ts-jest/badge.svg?style=flat-square\" alt=\"Known vulnerabilities\"/\u003e \u003c/a\u003e\n  \u003ca href=\"https://coveralls.io/github/kulshekhar/ts-jest?branch=main\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/kulshekhar/ts-jest/badge.svg?branch=main\" alt=\"Coverage status\"/\u003e \u003c/a\u003e\n  \u003ca href=\"https://actions-badge.atrox.dev/kulshekhar/ts-jest/goto?ref=main\"\u003e\u003cimg alt=\"GitHub actions\" src=\"https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fkulshekhar%2Fts-jest%2Fbadge%3Fref%3Dmain\u0026style=flat-square\" /\u003e \u003c/a\u003e\n  \u003ca href=\"https://github.com/kulshekhar/ts-jest/blob/main/LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/ts-jest.svg?style=flat-square\" alt=\"GitHub license\"/\u003e \u003c/a\u003e\n  \u003ca href=\"https://gurubase.io/g/ts-jest\"\u003e\u003cimg src=\"https://img.shields.io/badge/Gurubase-Ask%20ts--jest%20Guru-006BFF?style=flat-square\" alt=\"Gurubase\"/\u003e \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cimg src=\"./icon.png\" align=\"right\" title=\"ts-jest Logo\" width=\"128\" height=\"128\"\u003e\n\nIt supports all features of TypeScript including type-checking. [Read more about Babel7 + `preset-typescript` **vs** TypeScript (and `ts-jest`)](https://kulshekhar.github.io/ts-jest/docs/babel7-or-ts).\n\n---\n\n| We are not doing semantic versioning and `23.10` is a re-write, run `npm i -D ts-jest@\"\u003c23.10.0\"` to go back to the previous version |\n| ------------------------------------------------------------------------------------------------------------------------------------ |\n\n[\u003cimg src=\"./website/static/img/documentation.png\" align=\"left\" height=\"24\"\u003e View the online documentation (usage \u0026 technical)](https://kulshekhar.github.io/ts-jest)\n\n[\u003cimg src=\"./website/static/img/discord.svg\" align=\"left\" height=\"24\"\u003e Ask for some help in the `Jest` Discord community](https://discord.gg/j6FKKQQrW9) or [`ts-jest` GitHub Discussion](https://github.com/kulshekhar/ts-jest/discussions)\n\n[\u003cimg src=\"./website/static/img/troubleshooting.png\" align=\"left\" height=\"24\"\u003e Before reporting any issues, be sure to check the troubleshooting page](TROUBLESHOOTING.md)\n\n[\u003cimg src=\"./website/static/img/pull-request.png\" align=\"left\" height=\"24\"\u003e We're looking for collaborators! Want to help improve `ts-jest`?](https://github.com/kulshekhar/ts-jest/issues/223)\n\n---\n\n## Getting Started\n\nThese instructions will get you setup to use `ts-jest` in your project. For more detailed documentation, please check [online documentation](https://kulshekhar.github.io/ts-jest).\n\n|                     | using npm                      | using yarn                           |\n| ------------------: | ------------------------------ | ------------------------------------ |\n|   **Prerequisites** | `npm i -D jest typescript`     | `yarn add --dev jest typescript`     |\n|      **Installing** | `npm i -D ts-jest @types/jest` | `yarn add --dev ts-jest @types/jest` |\n| **Creating config** | `npx ts-jest config:init`      | `yarn ts-jest config:init`           |\n|   **Running tests** | `npm test` or `npx jest`       | `yarn test` or `yarn jest`           |\n\n## Built With\n\n- [TypeScript](https://www.typescriptlang.org/) - JavaScript that scales\n- [Jest](https://jestjs.io/) - Delightful JavaScript Testing\n- [`ts-jest`](https://kulshekhar.github.io/ts-jest) - Jest [transformer](https://jestjs.io/docs/next/code-transformation#writing-custom-transformers) for TypeScript _(yes, `ts-jest` uses itself for its tests)_\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe **DO NOT** use [SemVer](https://semver.org/) for versioning. Though you can think about SemVer when reading our version, except our major number follows the one of Jest. For the versions available, see the [tags on this repository](https://github.com/kulshekhar/ts-jest/tags).\n\n## Authors/maintainers\n\n- **Kulshekhar Kabra** - [kulshekhar](https://github.com/kulshekhar)\n- **Gustav Wengel** - [GeeWee](https://github.com/GeeWee)\n- **Ahn** - [ahnpnl](https://github.com/ahnpnl)\n- **Huafu Gandon** - [huafu](https://github.com/huafu)\n\nSee also the list of [contributors](https://github.com/kulshekhar/ts-jest/contributors) who participated in this project.\n\n## Supporters\n\n- [JetBrains](https://www.jetbrains.com/?from=ts-jest) has been kind enough to support ts-jest with a [license for open source] (https://www.jetbrains.com/community/opensource/?from=ts-jest).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulshekhar%2Fts-jest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkulshekhar%2Fts-jest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulshekhar%2Fts-jest/lists"}