diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-05-01 20:40:35 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-05-01 20:40:35 +0300 |
commit | 6b1e4ad5e85dd9965e4a1f9c45a6632e95c3f839 (patch) | |
tree | 79495cd2dbfa39e1c1b371c663d090efdddb62f8 /spec/javascripts/test_bundle.js | |
parent | 71d53ebcf8ba098cacc088ed53af8cda12a1226c (diff) |
Fix memory and performance issues in Karma test suite
Diffstat (limited to 'spec/javascripts/test_bundle.js')
-rw-r--r-- | spec/javascripts/test_bundle.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index bcd15f5eae2..2411d33a496 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -84,21 +84,11 @@ beforeEach(() => { const axiosDefaultAdapter = getDefaultAdapter(); -let testFiles = process.env.TEST_FILES || []; -if (testFiles.length > 0) { - testFiles = testFiles.map(path => path.replace(/^spec\/javascripts\//, '').replace(/\.js$/, '')); - console.log(`Running only tests matching: ${testFiles}`); -} else { - console.log('Running all tests'); -} - // render all of our tests const testsContext = require.context('.', true, /_spec$/); testsContext.keys().forEach(function(path) { try { - if (testFiles.length === 0 || testFiles.some(p => path.includes(p))) { - testsContext(path); - } + testsContext(path); } catch (err) { console.error('[ERROR] Unable to load spec: ', path); describe('Test bundle', function() { |