You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I know coveraje works without wrapping the node code (instead exporting all vars into the context) but I think that approach is broken. Node should function like node, where the code is wrapped and everything returned is via module.exports or exports
This will add some inconsistency so perhaps it's best to split up into a different function -- like cover.coverNode ??
Related to GH-22
I noticed this bug while I was writing the failing test
Basically, this line has to be
context.module.exports
and cannot becontext.exports
This is because
context.exports = context.module.exports
but whencontext.module.exports
is assigned, it doesn't reflect incontext.exports
Solution: wrap the code using
Module.wrap
and pass inmodule.exports
as exports andmodule
asmodule
edit:
err...just realized you can't wrap the code since that's just the way coveraje works. Hmmmm
The text was updated successfully, but these errors were encountered: