diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-07-06 12:41:53 +0000 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-07-12 11:52:15 +0200 |
commit | 0443c708c0db117dc76b1a3683ddb0fb76479511 (patch) | |
tree | 8cfc904fca8622692f18d0ad90ef9c8435bdcf03 /spec/javascripts/test_bundle.js | |
parent | cfe2121978a235d93d9bacefde37702bfa1f4848 (diff) | |
download | gitlab-ce-0443c708c0db117dc76b1a3683ddb0fb76479511.tar.gz |
Include Vue files that are not covered by tests in test coverage48912-vue-files-without-tests-missing-in-coverage-report
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; } |