Skip to content

codazzo/test-es6-modules-with-mocha-sinon-proxyquire

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Running demo of testing ES6 modules using mocha, sinon, proxyquire

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%