{"id":13450091,"url":"https://github.com/aelbore/esbuild-jest","last_synced_at":"2025-05-15T02:07:04.950Z","repository":{"id":38792344,"uuid":"266269119","full_name":"aelbore/esbuild-jest","owner":"aelbore","description":"A Jest transformer using esbuild","archived":false,"fork":false,"pushed_at":"2024-07-23T10:29:07.000Z","size":894,"stargazers_count":523,"open_issues_count":64,"forks_count":51,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-13T10:47:49.514Z","etag":null,"topics":["esbuild","javascript","jest","test","transformer","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aelbore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-23T05:25:16.000Z","updated_at":"2025-04-28T21:25:13.000Z","dependencies_parsed_at":"2024-06-18T12:21:46.813Z","dependency_job_id":"50fd19c2-8881-4cd3-8ede-c588bffb9aba","html_url":"https://github.com/aelbore/esbuild-jest","commit_stats":{"total_commits":45,"total_committers":4,"mean_commits":11.25,"dds":0.0888888888888889,"last_synced_commit":"daa5847b3b382d9ddf6cc26e60ad949d202c4461"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aelbore%2Fesbuild-jest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aelbore%2Fesbuild-jest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aelbore%2Fesbuild-jest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aelbore%2Fesbuild-jest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aelbore","download_url":"https://codeload.github.com/aelbore/esbuild-jest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259383,"owners_count":22040820,"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":["esbuild","javascript","jest","test","transformer","typescript"],"created_at":"2024-07-31T07:00:29.892Z","updated_at":"2025-05-15T02:07:04.929Z","avatar_url":"https://github.com/aelbore.png","language":"TypeScript","funding_links":[],"categories":["esbuild-jest","TypeScript"],"sub_categories":[],"readme":"# esbuild-jest\n\n### A Jest transformer using esbuild\nWith this transformer you can use and transform (ts, js, tsx and jsx) files\n\n[![npm](https://img.shields.io/npm/v/esbuild-jest.svg)](https://www.npmjs.com/package/esbuild-jest)\n![build status](https://github.com/aelbore/esbuild-jest/actions/workflows/ci.yml/badge.svg)\n\n## Install\n\n```bash\nnpm install --save-dev esbuild-jest esbuild\n```\n\n#### Setting up Jest config file\n\nesbuild-jest transformer should be used in your Jest config file like this:\n\n```js\n{\n  \"transform\": {\n    \"^.+\\\\.tsx?$\": \"esbuild-jest\"\n  }\n}\n```\n\n#### Setting up Jest config file with transformOptions\n```typescript\nexport interface Options {\n  jsxFactory?: string\n  jsxFragment?: string\n  sourcemap?: boolean | 'inline' | 'external'\n  loaders?: {\n    [ext: string]: Loader\n  },\n  target?: string\n  format?: string\n}\n```\n\n```js\n{\n  \"transform\": {\n    \"^.+\\\\.tsx?$\": [ \n      \"esbuild-jest\", \n      { \n        sourcemap: true,\n        loaders: {\n          '.spec.ts': 'tsx'\n        }\n      } \n    ]\n  }\n}\n```\n\n\u003e Note: if you are using tsconfig.json and jsconfig.json with \"paths\", Please look `alias-hq` and there documentation https://github.com/davestewart/alias-hq/blob/master/docs/integrations.md\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faelbore%2Fesbuild-jest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faelbore%2Fesbuild-jest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faelbore%2Fesbuild-jest/lists"}