Skip to content

danielbayley/jest-preset-coffeescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7ec15fc Β· Oct 16, 2020

History

61 Commits
Oct 15, 2020
Oct 15, 2020
Oct 15, 2020
Sep 15, 2017
Oct 16, 2020
Oct 15, 2020
Oct 16, 2020

Repository files navigation

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:

  1. configured npm to work with GitHub Packages
  2. ensured peerDependencies are installed
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