mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01: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
|
||||
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");
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue