mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
* add vuex, cleanup client directory and create example components * disale sample unit test * disable import for non existing file * correct regexp for unit tests, add simple test to avoid error, add babel-polyfill for Vuex * add line wrongly removed, update regexp
11 lines
562 B
JavaScript
11 lines
562 B
JavaScript
// TODO verify if it's needed, added because Vuex require Promise in the global scope
|
|
// and babel-runtime doesn't affect external libraries
|
|
require('babel-polyfill');
|
|
|
|
// require all test files (files that ends with .spec.js)
|
|
var testsContext = require.context('./specs', true, /\.spec$/);
|
|
testsContext.keys().forEach(testsContext);
|
|
|
|
// require all src files except main.js/ README.md / index.html for coverage.
|
|
var srcContext = require.context('../../../website/client', true, /^\.\/(?!(main(\.js)?)|(index(\.html)?)$)/);
|
|
srcContext.keys().forEach(srcContext); |