diff --git a/src/node/hooks/express/tests.js b/src/node/hooks/express/tests.js index 443e9f68..51439096 100644 --- a/src/node/hooks/express/tests.js +++ b/src/node/hooks/express/tests.js @@ -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"); });