Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Use 'typescript-babel-jest' for jest tsx transform #97

@JiLiZART

Description

@JiLiZART

Hi, I have ejected version of cra and had some issues with configuration for jest.

After about 3 hours trying to chain compilation of babel and typescript I just found typescript-babel-jest. Zero configuration drop-in replacement.

I just changed "^.+\\.tsx?$": "<rootDir>/config/jest/typescriptTransform.js", with "^.+\\.tsx?$": "typescript-babel-jest", in my package.json and it simply works, reads tsconfig.json and .babelrc and other settings!

So I have suggestion for including this package, this guys use it too https://github.com/ant-design/ant-design/blob/master/.jest.js#L33

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy