I'm trying to keep my client side and server side testing libraries in sync (specifically mocha, chai, sinon, and coffee-script).
Right now I'm thinking the only solution may be to use symbolic links to the files under node_modules. Any other ideas? Thanks!
Abhik
Instead of importing the client-side code into Node.js modules you can also create client-side code from Node.js modules by using something like Browserify. Those Node.js modules have to be optimized for the browser though.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.