Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielbayley/jest-preset-coffeescript
🃏 Easily write your Jests in @CoffeeScript.
https://github.com/danielbayley/jest-preset-coffeescript
coffeescript configuration jest npm package testing transform unit-testing
Last synced: about 1 month ago
JSON representation
🃏 Easily write your Jests in @CoffeeScript.
- Host: GitHub
- URL: https://github.com/danielbayley/jest-preset-coffeescript
- Owner: danielbayley
- License: mit
- Created: 2017-09-10T21:27:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T17:58:25.000Z (almost 2 years ago)
- Last Synced: 2024-04-18T09:41:21.078Z (8 months ago)
- Topics: coffeescript, configuration, jest, npm, package, testing, transform, unit-testing
- Language: CoffeeScript
- Homepage: https://jestjs.io
- Size: 41 KB
- Stars: 18
- Watchers: 4
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[_Jest_] + [CoffeeScript]
=========================
Easily write your [_Jest_]s in CoffeeScript.Automatically handles [_transform_]ation, 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 `install`ed
~~~ sh
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]:
~~~ js
// package.json
"jest": {
"preset": "@danielbayley/jest-preset-coffeescript"
},
~~~License
-------
[MIT] © [Daniel Bayley][MIT]: LICENSE.md
[Daniel Bayley]: https://github.com/danielbayley[_jest_]: https://jestjs.io
[configuration]: https://jestjs.io/docs/configuration
[_transform_]: https://jestjs.io/docs/en/configuration#transform-objectstring-pathtotransformer--pathtotransformer-object[coffeescript]: http://coffeescript.org
[literate]: http://coffeescript.org/#literate[`lit`]: test/index.litcoffee
[`coffee`]: test/index.coffee
[`.md`]: test/index.coffee.md[configured]: https://help.github.com/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#authenticating-to-github-package-registry
[`peerDependencies`]: https://github.com/danielbayley/jest-preset-coffeescript/blob/master/package.json#L36-L38