tests: ignore vim swap files

This helps during plugin development, which otherwise which break when a
developer is editing a test.
pull/3885/head
John McLear 2020-03-22 17:41:57 +00:00 committed by muxator
parent 04e9fc3a2f
commit 4eec68fbdd
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ exports.expressCreateServer = function (hook_name, args, cb) {
// merge the two sets of results
let files = [].concat(coreTests, pluginTests).sort();
// Remove swap files from tests
files = files.filter(el => !/\.swp$/.test(el))
console.debug("Sent browser the following test specs:", files);
res.send("var specs_list = " + JSON.stringify(files) + ";\n");
});