Merge branch '48912-vue-files-without-tests-missing-in-coverage-report' into 'master'
Include Vue files without tests in coverage report Closes #48912 See merge request gitlab-org/gitlab-ce!20431
This commit is contained in:
commit
b8450b8bd7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue