Skip to content
Snippets Groups Projects
Commit 0443c708 authored by Winnie Hellmann's avatar Winnie Hellmann
Browse files

Include Vue files that are not covered by tests in test coverage

parent cfe21219
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment