run es6 tests in karma

This commit is contained in:
Eric Hulburd
2016-03-04 17:43:39 -06:00
parent aa885f331c
commit 43a9daf94e
7 changed files with 162 additions and 48 deletions

14
tests.webpack.js Normal file
View File

@@ -0,0 +1,14 @@
// Require babel polyfill for browser.
require('babel-polyfill');
var testsContext = require.context('./spec', true, /\.test\.js$/);
testsContext.keys().forEach(testsContext);
require('./client/models/house');
require('./shared/utils/date_range');
/*
var srcContext = require.context('./client', true, /\.js$/);
srcContext.keys().forEach(srcContext);*/