summaryrefslogtreecommitdiff
path: root/spec/javascripts/test_bundle.js
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-07-06 12:41:53 +0000
committerWinnie Hellmann <winnie@gitlab.com>2018-07-12 11:52:15 +0200
commit0443c708c0db117dc76b1a3683ddb0fb76479511 (patch)
tree8cfc904fca8622692f18d0ad90ef9c8435bdcf03 /spec/javascripts/test_bundle.js
parentcfe2121978a235d93d9bacefde37702bfa1f4848 (diff)
downloadgitlab-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.js4
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;
}