@drieam/jest-transform-sucrase-vite
v4.2.2
Published
Jest transform plugin for Sucrase/Vite
Downloads
1,312
Keywords
Readme
@drieam/jest-transform-sucrase-vite
Use Sucrase as Jest transformation instead of the default babel-jest. It will also transform Vite's env variables.
Installation
Install as development dependency:
$ pnpm add -D @drieam/jest-transform-sucrase-vite
Usage
Set @drieam/jest-transform-sucrase-vite
as the transformer for JavaScript/Typescript code in your Jest config:
"transform": {
"\\.[jt]sx?$": "@drieam/jest-transform-sucrase-vite"
},