{"id":23360715,"url":"https://github.com/pmairoldi/jest-preset-typescript-react-native","last_synced_at":"2026-02-16T04:35:31.599Z","repository":{"id":57280421,"uuid":"82764628","full_name":"pmairoldi/jest-preset-typescript-react-native","owner":"pmairoldi","description":"Simplify the configuration of jest with a react-native and typescript","archived":false,"fork":false,"pushed_at":"2017-10-21T07:25:00.000Z","size":208,"stargazers_count":11,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-04T02:54:49.858Z","etag":null,"topics":["react-native","typescript"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/pmairoldi.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":"2017-02-22T05:31:07.000Z","updated_at":"2018-12-02T17:41:28.000Z","dependencies_parsed_at":"2022-09-19T15:51:21.016Z","dependency_job_id":null,"html_url":"https://github.com/pmairoldi/jest-preset-typescript-react-native","commit_stats":null,"previous_names":["petester42/jest-preset-typescript-react-native"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pmairoldi/jest-preset-typescript-react-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmairoldi%2Fjest-preset-typescript-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmairoldi%2Fjest-preset-typescript-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmairoldi%2Fjest-preset-typescript-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmairoldi%2Fjest-preset-typescript-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmairoldi","download_url":"https://codeload.github.com/pmairoldi/jest-preset-typescript-react-native/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmairoldi%2Fjest-preset-typescript-react-native/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29500503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T03:57:51.541Z","status":"ssl_error","status_checked_at":"2026-02-16T03:55:59.854Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["react-native","typescript"],"created_at":"2024-12-21T11:16:03.218Z","updated_at":"2026-02-16T04:35:31.570Z","avatar_url":"https://github.com/pmairoldi.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jest-preset-typescript-react-native\n\n[![NPM Version][npm-img]][npm-link]\n[![License][license-img]][license-link]\n[![Build Status][build-img]][build-link]\n\nTo simplify the configuration of jest with a react-native project that is using typescript. \n\nThe configuration is simply just the `react-native` preset with a couple other transformers to make jest work with `ts` and `tsx` files. After adding the preset you will be able to write your tests completely in typescript! \n\n## Install\n\nThe library can be installed with [yarn](https://yarnpkg.com) with the following:\n```bash\nyarn add jest-preset-typescript-react-native --dev\n```\n\nor with [npm](https://www.npmjs.com) with the following:\n\n```bash\nnpm install jest-preset-typescript-react-native --save-dev\n```\n\n\n## Usage\n\nAdd the preset to your [Jest](https://facebook.github.io/jest/docs/configuration.html) configuration :\n\n```json\n{\n  \"preset\": \"jest-preset-typescript-react-native\"\n}\n```\n\n## Update react-native default settings\n\nBy default when creating a react-native project jest will be already configured for you in the `package.json` as follows:\n\n```json\n\"jest\": {\n  \"preset\": \"react-native\"\n}\n```\n\nTo update the default react-native settings just change the preset to use this library instead. Like so:\n\n```json\n\"jest\": {\n  \"preset\": \"jest-preset-typescript-react-native\"\n}\n```\n\n[npm-img]: https://img.shields.io/npm/v/jest-preset-typescript-react-native.svg?style=flat-square\n[npm-link]: https://www.npmjs.com/package/jest-preset-typescript-react-native\n[license-img]: https://img.shields.io/npm/l/jest-preset-typescript-react-native.svg?style=flat-square\n[license-link]: LICENSE.md\n[build-img]: https://travis-ci.org/petester42/jest-preset-typescript-react-native.svg?branch=master\n[build-link]: https://travis-ci.org/petester42/jest-preset-typescript-react-native","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmairoldi%2Fjest-preset-typescript-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmairoldi%2Fjest-preset-typescript-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmairoldi%2Fjest-preset-typescript-react-native/lists"}