0.0.5 • Published 3 years ago

@luma-team/sucrase-jest-plugin-test v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago