jest-preset-coffeescript
jest-preset-coffeescript copied to clipboard
🃏 Easily write your Jests in @CoffeeScript.
Jest + CoffeeScript
Easily write your Jests in CoffeeScript.
Automatically handles transformation, including even tests written in literate CoffeeScript.
This will work on any .[lit]coffee[.md] file in your test/spec[s] folder by default.
Install
Assuming you already:
- configured
npmto work with GitHub Packages - ensured
peerDependenciesareinstalled
npm config set @danielbayley:registry https://npm.pkg.github.com
npm install @danielbayley/jest-preset-coffeescript --save-dev
Then add the following to your Jest configuration:
// package.json
"jest": {
"preset": "@danielbayley/jest-preset-coffeescript"
},
License
MIT © Daniel Bayley