diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-07-06 15:41:53 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-07-12 12:52:15 +0300 |
commit | 0443c708c0db117dc76b1a3683ddb0fb76479511 (patch) | |
tree | 8cfc904fca8622692f18d0ad90ef9c8435bdcf03 /spec/javascripts/test_bundle.js | |
parent | cfe2121978a235d93d9bacefde37702bfa1f4848 (diff) |
Include Vue files that are not covered by tests in test coverage
Diffstat (limited to 'spec/javascripts/test_bundle.js')
-rw-r--r-- | spec/javascripts/test_bundle.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index 0eff98bcc9d..a0ca8f8b4c3 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -166,13 +166,13 @@ if (process.env.BABEL_ENV === 'coverage') { ]; describe('Uncovered files', function() { - const sourceFiles = require.context('~', true, /\.js$/); + const sourceFiles = require.context('~', true, /\.(js|vue)$/); $.holdReady(true); sourceFiles.keys().forEach(function(path) { // ignore if there is a matching spec file - if (testsContext.keys().indexOf(`${path.replace(/\.js$/, '')}_spec`) > -1) { + if (testsContext.keys().indexOf(`${path.replace(/\.(js|vue)$/, '')}_spec`) > -1) { return; } |