Commit 0443c708 authored by Winnie Hellmann's avatar Winnie Hellmann

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

parent cfe21219
...@@ -166,13 +166,13 @@ if (process.env.BABEL_ENV === 'coverage') { ...@@ -166,13 +166,13 @@ if (process.env.BABEL_ENV === 'coverage') {
]; ];
describe('Uncovered files', function() { describe('Uncovered files', function() {
const sourceFiles = require.context('~', true, /\.js$/); const sourceFiles = require.context('~', true, /\.(js|vue)$/);
$.holdReady(true); $.holdReady(true);
sourceFiles.keys().forEach(function(path) { sourceFiles.keys().forEach(function(path) {
// ignore if there is a matching spec file // 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; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment