Skip to content

Commit

Permalink
Merge pull request #212 from AsaAyers/coffeescript-tutorial
Browse files Browse the repository at this point in the history
Fix the CoffeeScript extensions in the tutorial
  • Loading branch information
leebyron committed Jan 14, 2015
2 parents a15afaf + 0828943 commit 7ddfd0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/TutorialCoffeeScript.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Jest doesn't come with builtin support for CoffeeScript but can easily be config
},
"jest": {
"scriptPreprocessor": "preprocessor.js",
"testFileExtensions": ["coffee", "js"]
"testFileExtensions": ["coffee", "litcoffee", "coffee.md", "js"]
}
```

Expand All @@ -27,7 +27,8 @@ var coffee = require('coffee-script');
module.exports = {
process: function(src, path) {
if (path.match(/\.coffee$/)) {
// CoffeeScript files can be .coffee, .litcoffee, or .coffee.md
if (coffee.helpers.isCoffee(path)) {
return coffee.compile(src, {'bare': true});
}
return src;
Expand Down

0 comments on commit 7ddfd0d

Please sign in to comment.