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
I need to have a single file with Mocha and all it's dependencies to use in a Nashorn environment. I can't have any requires in the final file as it stands for node, or as the browser mocha.js stands, since my environment will not allow for that. I've tried this with browserify and I'm getting a number of dependency errors. Currently I'm using Jasmine as it nicely stands as a single file, but there have been some issues with Jasmine lately so I thought I'd try Mocha.
Anyone have any pointers? Has anyone tried this? This is the gist of what I'm trying:
If I comment that out it's fine. I'm going to play around with this some more. There may be a fix somewhere in there or it may be nice to exclude some of these reporters for something like this. I've gathered that the ./mocha.js assumes you're using a browser. Anyone have thoughts on modifying it so that it (1) zips everything together and (2) doesn't assume you're using a browser?
I need to have a single file with Mocha and all it's dependencies to use in a Nashorn environment. I can't have any requires in the final file as it stands for node, or as the browser mocha.js stands, since my environment will not allow for that. I've tried this with browserify and I'm getting a number of dependency errors. Currently I'm using Jasmine as it nicely stands as a single file, but there have been some issues with Jasmine lately so I thought I'd try Mocha.
Anyone have any pointers? Has anyone tried this? This is the gist of what I'm trying:
The text was updated successfully, but these errors were encountered: