{"id":15967502,"url":"https://github.com/joscha/ts-jest-transformer-example","last_synced_at":"2026-05-08T04:44:01.421Z","repository":{"id":140607212,"uuid":"84921097","full_name":"joscha/ts-jest-transformer-example","owner":"joscha","description":"Custom transformer \u0026 module mapper with jest \u0026 ts-jest","archived":false,"fork":false,"pushed_at":"2017-03-14T12:34:22.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T05:07:19.937Z","etag":null,"topics":["identity-obj-proxy","jest","module-mapper","react","testing","transformer","ts-jest","typescript"],"latest_commit_sha":null,"homepage":null,"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/joscha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-14T07:54:02.000Z","updated_at":"2021-12-07T15:30:23.000Z","dependencies_parsed_at":"2023-03-27T10:58:15.911Z","dependency_job_id":null,"html_url":"https://github.com/joscha/ts-jest-transformer-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joscha/ts-jest-transformer-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fts-jest-transformer-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fts-jest-transformer-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fts-jest-transformer-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fts-jest-transformer-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joscha","download_url":"https://codeload.github.com/joscha/ts-jest-transformer-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fts-jest-transformer-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32767589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["identity-obj-proxy","jest","module-mapper","react","testing","transformer","ts-jest","typescript"],"created_at":"2024-10-07T18:23:40.312Z","updated_at":"2026-05-08T04:44:01.383Z","avatar_url":"https://github.com/joscha.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example: Custom transformer \u0026 module mapper with jest \u0026 ts-jest\n\nThis repository shows how to use custom transformers and module mappers with [jest](https://facebook.github.io/jest/) when using [ts-jest](https://github.com/kulshekhar/ts-jest).\n\nIt also shows especially how this works when there is a custom tsconfig to be used for the test environment.\n\n## Examples\n\nHave a look at\n* `./tools/fileTransformer.js` to see how to write a transformer using [`ts-jest-transformer`](https://github.com/joscha/ts-jest-transformer)\n* `./tools/stubProxy.ts` to see how to write a module mapper\n* `./tools/identityProxy.ts` to see how to use the `identity-obj-proxy` in a module mapper\n\n### Caveats\n* Transformers can not be written in TypeScript, because they are picked up by ts-jest and are not transpiled\n* Module mappers have to be written in TypeScript, so the exports end up in the right place\n* Put your transformers *before* the `ts-jest` preprocessor\n\n## Development\n\nRun `yarn dev` to run the sample test with a disabled jest cache. Have a look at `./tmp` to see the generated files (helps you with debugging)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoscha%2Fts-jest-transformer-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoscha%2Fts-jest-transformer-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoscha%2Fts-jest-transformer-example/lists"}