TS

Ts Jest

ts-jest

A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript

Testing
jest
typescript
sourcemap
react
testing
ts-jest
javascript
npm
frontend
open source
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB

Installation

npm install ts-jest

Code example

import { TsJest } from "ts-jest";

export function Example() {
  return (
    <div>
      <h2>Ts Jest</h2>
      <TsJest />
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by Kulshekhar Kabra
  • 0 weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~60 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 0 open issues on GitHub

FAQs

Alternatives & similar libraries