Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hannoeru/jest-esbuild
A Jest esbuild transformer
https://github.com/hannoeru/jest-esbuild
Last synced: 12 days ago
JSON representation
A Jest esbuild transformer
- Host: GitHub
- URL: https://github.com/hannoeru/jest-esbuild
- Owner: hannoeru
- License: mit
- Created: 2021-03-07T11:04:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-20T09:24:22.000Z (9 months ago)
- Last Synced: 2024-10-21T22:24:07.133Z (18 days ago)
- Language: TypeScript
- Homepage:
- Size: 230 KB
- Stars: 18
- Watchers: 2
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jest esbuild
[![npm version](https://badgen.net/npm/v/jest-esbuild)](https://www.npmjs.com/package/jest-esbuild)
A Jest esbuild transformer
## Install
```bash
npm install -D jest-esbuild
```Set `transform` TypeScript file to `jest-esbuild` inside `jest.config.js`
```json5
{
"transform": {
"^.+\\.tsx?$": "jest-esbuild"
}
}
```Specify esbuild options
```js
const esbuildOptions = {}module.export = {
transform: {
"^.+\\.tsx?$": [
"jest-esbuild",
esbuildOptions
]
}
}
```## License
MIT License © 2021 [hannoeru](https://github.com/hannoeru)