Skip to content

briancavalier/buba

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buba

Bublé transform for your esnext tests + a little bit of Babel

Build Status js-standard-style npm version

Why?

Because a wise man once said your source code should be transpiled with same tool as your tests to avoid any hidden bugs.

The usecase would be transpiling es* source code with Bublé and have tests match as well. An alternative to using babel-register

The primary transformer here is Bublé we only use Babel for support with module import/exports.

Install

npm install buba --save-dev

Usage

mocha --require buba tests/**/*.js
# or
tape --require buba tests/**/*.js

With mocha you can also provide buba within the mocha.opts config file:

 --require buba
 --reporter spec
 --ui bdd

Currently we only plan to use Babel for modules but you can add support for something like generators by adding a .babelrc file.

Todo

  • Add Tests
  • Add Bublé options
  • Add CLI supoort

About

Bublé transform for your esnext tests + a little bit of Babel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%