New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requiring coffee files without an extension is broken #44
Comments
Yeah, perhaps we should support a |
I have a pull request I'm putting together. I think it should use |
@AsaAyers any updates? I would like to see this too |
I don't know why it says "Closed with unmerged commits" but my PR was #45. At vjeux's suggestion it looks like I documented it: |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When using CoffeeScript in Node or Browserify you can use
require './somefile'
and it will check forsomefile.coffee
,somefile.litcoffee
, andsomefile.coffee.md
. Jest does not look for these extensions and simply throws aCannot find module
error.To reproduce this:
examples/coffeescript/common.coffee
. It can be an empty file, it just should exist.sum.coffee
with the code below.coffee sum.coffee
and see that you get get the output11
npm test
. It will throw theCannot find module
error.examples/coffeescript/sum.coffee
The text was updated successfully, but these errors were encountered: