Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 746 Bytes

File metadata and controls

21 lines (14 loc) · 746 Bytes

Test ES6 with Mocha, Sinon, Proxyquire

This repository is a running example of how to configure a project for testing Babel transpiled ES6 JavaScript that uses ES6 module syntax, using Mocha, Sinon and Proxyquire without adding any dependency to whatever module bundler/loader is used for delivering the code to browsers.

Try it out

I've tested this in node 6.x and 7.x. If you're using ES6 modules, then you probably also have a fairly modern node on your system(s).

$ npm install
$ npm test

License

MIT: http://mrgnrdrck.mit-license.org