diff options
Diffstat (limited to 'js/tests/karma.conf.js')
-rw-r--r-- | js/tests/karma.conf.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js index 122d95753b..16f07cbf1a 100644 --- a/js/tests/karma.conf.js +++ b/js/tests/karma.conf.js @@ -79,8 +79,9 @@ if (bundle) { conf.detectBrowsers = detectBrowsers files = files.concat([ jqueryFile, + 'js/tests/unit/tests-polyfills.js', 'dist/js/bootstrap.js', - 'js/tests/unit/*.js' + 'js/tests/unit/!(tests-polyfills).js' ]) } else if (browserStack) { conf.hostname = ip.address() @@ -97,6 +98,7 @@ if (bundle) { reporters.push('BrowserStack') files = files.concat([ jqueryFile, + 'js/tests/unit/tests-polyfills.js', 'js/coverage/dist/util/util.js', 'js/coverage/dist/util/sanitizer.js', 'js/coverage/dist/dom/polyfill.js', @@ -107,7 +109,7 @@ if (bundle) { 'js/coverage/dist/dom/!(polyfill).js', 'js/coverage/dist/tooltip.js', 'js/coverage/dist/!(util|index|tooltip).js', // include all of our js/dist files except util.js, index.js and tooltip.js - 'js/tests/unit/*.js', + 'js/tests/unit/!(tests-polyfills).js', 'js/tests/unit/dom/*.js', 'js/tests/unit/util/*.js' ]) @@ -121,6 +123,7 @@ if (bundle) { ) files = files.concat([ jqueryFile, + 'js/tests/unit/tests-polyfills.js', 'js/coverage/dist/util/util.js', 'js/coverage/dist/util/sanitizer.js', 'js/coverage/dist/dom/polyfill.js', @@ -131,7 +134,7 @@ if (bundle) { 'js/coverage/dist/dom/!(polyfill).js', 'js/coverage/dist/tooltip.js', 'js/coverage/dist/!(util|index|tooltip).js', // include all of our js/dist files except util.js, index.js and tooltip.js - 'js/tests/unit/*.js', + 'js/tests/unit/!(tests-polyfills).js', 'js/tests/unit/dom/*.js', 'js/tests/unit/util/*.js' ]) |