mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
tests: ignore vim swap files
This helps during plugin development, which otherwise which break when a developer is editing a test.
This commit is contained in:
parent
04e9fc3a2f
commit
4eec68fbdd
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue