configure Jest to use TypeScript



    Khalid Khan

    React Native companion for Typescript

    This code declares that the module exports a single object named preset with the following properties: react-native and moduleFileExtensions.

    Shortcut: reactnative.config.jest

    module.exports = {
      preset: 'react-native',
      moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node']
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.