mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
11 lines
552 B
JavaScript
11 lines
552 B
JavaScript
// TODO verify if it's needed, added because Axios 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)
|
|
let testsContext = require.context('./specs', true, /\.spec$/);
|
|
testsContext.keys().forEach(testsContext);
|
|
|
|
// require all .vue and .js files except main.js for coverage.
|
|
let srcContext = require.context('../../../website/client', true, /^\.\/(?=(?!main(\.js)?$))(?=(.*\.(vue|js)$))/);
|
|
srcContext.keys().forEach(srcContext); |