index.js 434 B

123456789101112131415161718
  1. 'use strict'
  2. // Set BABEL_ENV to use proper env config
  3. process.env.BABEL_ENV = 'test'
  4. // Enable use of ES6+ on required files
  5. require('babel-register')({
  6. ignore: /node_modules/
  7. })
  8. // Attach Chai APIs to global scope
  9. const { expect, should, assert } = require('chai')
  10. global.expect = expect
  11. global.should = should
  12. global.assert = assert
  13. // Require all JS files in `./specs` for Mocha to consume
  14. require('require-dir')('./specs')