tests: ignore vim swap files
This helps during plugin development, which otherwise which break when a developer is editing a test.pull/3885/head
parent
04e9fc3a2f
commit
4eec68fbdd
|
@ -12,6 +12,10 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
|
|
||||||
// merge the two sets of results
|
// merge the two sets of results
|
||||||
let files = [].concat(coreTests, pluginTests).sort();
|
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);
|
console.debug("Sent browser the following test specs:", files);
|
||||||
res.send("var specs_list = " + JSON.stringify(files) + ";\n");
|
res.send("var specs_list = " + JSON.stringify(files) + ";\n");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue