Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.
ask-izzyPublic archive

About

A plugin for Mocha to pass JS files through the Babel transpiler

Resources

Stars

0 stars

Watchers

2 watching

Forks

 
 

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mocha Babel

A simple plugin for Mocha to pass JS files through the Babel compiler. Note that dependencies of your project (i.e., files that include node_modules in their file path) will not be transpiled.

Babel is intentionally not included in this package so you can install your preferred version alongside Mocha Babel. Mocha Babel expects both babel and babel-runtime modules to exist in your project.

Use with Mocha from the command line like so:

mocha --compilers js:mocha-babel my_test_dir/*.js

About

A plugin for Mocha to pass JS files through the Babel transpiler

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages