{"id":13834708,"url":"https://github.com/marionebl/ts-transformer-testing-library","last_synced_at":"2025-10-01T06:30:44.871Z","repository":{"id":46913984,"uuid":"229334476","full_name":"marionebl/ts-transformer-testing-library","owner":"marionebl","description":"Make testing custom TypeScript transformers a breeze","archived":false,"fork":false,"pushed_at":"2023-01-05T03:26:14.000Z","size":969,"stargazers_count":18,"open_issues_count":14,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T03:50:21.452Z","etag":null,"topics":[],"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/marionebl.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}},"created_at":"2019-12-20T20:51:35.000Z","updated_at":"2023-12-30T04:18:24.000Z","dependencies_parsed_at":"2023-02-03T08:31:08.778Z","dependency_job_id":null,"html_url":"https://github.com/marionebl/ts-transformer-testing-library","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marionebl%2Fts-transformer-testing-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marionebl%2Fts-transformer-testing-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marionebl%2Fts-transformer-testing-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marionebl%2Fts-transformer-testing-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marionebl","download_url":"https://codeload.github.com/marionebl/ts-transformer-testing-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234831958,"owners_count":18893839,"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":[],"created_at":"2024-08-04T14:00:51.283Z","updated_at":"2025-10-01T06:30:44.512Z","avatar_url":"https://github.com/marionebl.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Transformers"],"sub_categories":["Testing"],"readme":"# ts-transformer-testing-libray\n\n\u003e Make testing custom TypeScript transformers a breeze\n\n* :zap: Avoid tsc work \n* :electric_plug: Work with multiple modules\n* :surfer: Mock source modules as required\n\nCustom TypeScript transformers are a powerful way to \nwork with your source code, but coming up with a good\nunit testing setup for them is hard.\n\nThis library does the heavy lifting for you.\n\n\n## Installation\n\n```\nyarn add -D ts-transformer-testing-library\n```\n\n## Usage\n\n```ts\n// Transform a standalone TypeScript source\nimport { transform } from \"ts-transformer-testing-library\";\n\nconst result = transform(`console.log('Hello, World!');`, {\n  transform() { /* Imaginary transform World ➞ You */ }\n});\n\nconsole.log(result); // \"Hello, You!\";\n```\n\n```ts\n// Transform a standalone TypeScript source\nimport { transformFile } from \"ts-transformer-testing-library\";\n\nconst result = transformFile({ \n  path: '/index.ts', \n  contents: `import {phrase} from './phrase'; console.log(phrase);`\n}, {\n  sources: [{ path: '/phrase.ts', contents: `export const phrase = 'Hello, World!'` }],\n  transform() { /* Imaginary transform World ➞ You */ }\n});\n\nconsole.log(result); // \"Hello, You!\";\n```\n\n## API\n\n:warning: API is still in flux. Consult interfaces in source for details.\n\n## License\n\nMIT. Copyright 2019 - present Mario Nebl\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarionebl%2Fts-transformer-testing-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarionebl%2Fts-transformer-testing-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarionebl%2Fts-transformer-testing-library/lists"}