From 7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 15 Jan 2017 18:24:09 -0800 Subject: Initial Vueification --- test/unit/index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/unit/index.js (limited to 'test/unit/index.js') diff --git a/test/unit/index.js b/test/unit/index.js new file mode 100644 index 00000000..9db1ffd5 --- /dev/null +++ b/test/unit/index.js @@ -0,0 +1,13 @@ +// Polyfill fn.bind() for PhantomJS +/* eslint-disable no-extend-native */ +Function.prototype.bind = require('function-bind') + +// require all test files (files that ends with .spec.js) +const testsContext = require.context('./specs', true, /\.spec$/) +testsContext.keys().forEach(testsContext) + +// require all src files except main.js for coverage. +// you can also change this to match only the subset of files that +// you want coverage for. +const srcContext = require.context('src', true, /^\.\/(?!main(\.js)?$)/) +srcContext.keys().forEach(srcContext) -- cgit v1.2.3