@sucrase/jest-plugin
Jest plugin for Sucrase
Last updated 4 years ago by alangpierce .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @sucrase/jest-plugin 
SYNC missed versions from official npm registry.

Sucrase Jest plugin

npm version MIT License

This is a simple Jest plugin that makes it easy to use Sucrase when running Jest tests.

Usage

First install the package as a dev dependency:

yarn add --dev @sucrase/jest-plugin

Then change the default transform in jest.config.js file:

  ...
  transform: { "\\.(js|jsx|ts|tsx)$": "@sucrase/jest-plugin" },
  ...

Currently, the transforms are not configurable; it uses always runs the import and jest transforms and uses the file extension to decide whether to run the JSX, Flow, and/or TypeScript transforms.

Current Tags

  • 2.2.0                                ...           latest (4 years ago)

7 Versions

  • 2.2.0                                ...           4 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |