Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Support Node.js testing #3

Open
jodal opened this issue May 26, 2012 · 3 comments
Open

Support Node.js testing #3

jodal opened this issue May 26, 2012 · 3 comments

Comments

@jodal
Copy link
Member

jodal commented May 26, 2012

Currently, buster-coffee only works with Buster.JS's browser testing, and not Buster.JS's Node.js testing. This is because buster-coffee just keeps the compiled JS sources in memory, while require() in Node.js apps expect to find the required modules on disk.

A possible solution is to create a "nodevm" test runner in Buster.JS, which run the tests in an environment controlled by the Node.js vm module. This gives the test runner control of the global namespace. Thus, it can override require() with a custom implementation that can access in-memory JS resources.

@flosse
Copy link
Contributor

flosse commented Jul 7, 2012

+1

1 similar comment
@dhenze
Copy link

dhenze commented Apr 2, 2013

+1

@danielkcz
Copy link

Any progress on this please ? I would love to have my coffee files compiled on fly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants