Pulse7
9/6/2017 - 2:08 PM

Testing with mocha

import {expect} from 'chai';

describe('Our first test',()=>{
  it('should pass',()=>{
    expect(true).to.equal(false);
  });
});
"scripts":
  "test":"mocha --reporter progress buildScripts/testSetup.js \"src/**/*.test.js\""
//Register babel to transpile before our test run
require('babel-register')();

//Disable webpack features that Mocha doesn't understand
require.extensions['.css'] = function(){};