{"id":19020339,"url":"https://github.com/ambar/es-jest","last_synced_at":"2025-04-23T05:57:57.606Z","repository":{"id":47683452,"uuid":"318579373","full_name":"ambar/es-jest","owner":"ambar","description":"ESM/React/TypeScript preprocessor for Jest, powered by esbuild.","archived":false,"fork":false,"pushed_at":"2022-10-25T03:03:14.000Z","size":260,"stargazers_count":20,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T05:57:51.197Z","etag":null,"topics":["esbuild","esm","jest","testing","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ambar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-12-04T16:52:08.000Z","updated_at":"2023-01-11T19:30:22.000Z","dependencies_parsed_at":"2023-01-20T08:32:05.169Z","dependency_job_id":null,"html_url":"https://github.com/ambar/es-jest","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambar%2Fes-jest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambar%2Fes-jest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambar%2Fes-jest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ambar%2Fes-jest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ambar","download_url":"https://codeload.github.com/ambar/es-jest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250379787,"owners_count":21420841,"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","esm","jest","testing","typescript"],"created_at":"2024-11-08T20:16:50.849Z","updated_at":"2025-04-23T05:57:57.561Z","avatar_url":"https://github.com/ambar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# es-jest\n\nESM/React/TypeScript preprocessor for Jest, powered by [esbuild](https://github.com/evanw/esbuild).\n\n[![build status](https://badgen.net/travis/ambar/es-jest)](https://travis-ci.org/ambar/es-jest)\n[![npm version](https://badgen.net/npm/v/es-jest)](https://www.npmjs.com/package/es-jest)\n\n## Install\n\n```bash\nnpm install es-jest --save-dev\n```\n\n## Usage\n\nAdd preset to Jest config:\n\n```json\n{\n  \"jest\": {\n    \"preset\": \"es-jest\"\n  }\n}\n\n// alternatively, specifying the files to transform:\n{\n  \"jest\": {\n    \"transform\": {\n      \"\\\\.[jt]sx?$\": \"es-jest\"\n    },\n  }\n}\n\n// you can also provide a custom esbuild config:\n{\n  \"jest\": {\n    \"transform\": {\n      \"\\\\.[jt]sx?$\": [\"es-jest\", { \"jsx\": \"automatic\" }]\n    },\n  }\n}\n```\n\nWrite your tests with ES modules:\n\n```js\nimport path from 'path'\n\ntest('parses extname', () =\u003e {\n  expect(path.extname('foo.md')).toBe('.md')\n})\n```\n\nHappy testing!\n\n## Related\n\n- [rollup-jest](https://github.com/ambar/rollup-jest)\n- [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest)\n- [ts-jest](https://github.com/kulshekhar/ts-jest)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fambar%2Fes-jest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fambar%2Fes-jest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fambar%2Fes-jest/lists"}