From 3e65f3a906c4467cdd9b5b707eab14c1717f74f3 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Tue, 29 May 2018 14:39:54 -0700 Subject: [PATCH] only include js files in frontend tests. fixes #834 --- test/frontend/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/frontend/index.js b/test/frontend/index.js index 9485bc5e..3e323ef2 100644 --- a/test/frontend/index.js +++ b/test/frontend/index.js @@ -6,7 +6,9 @@ function kv(f) { } module.exports = function() { - const files = fs.readdirSync(path.join(__dirname, 'tests')); + const files = fs + .readdirSync(path.join(__dirname, 'tests')) + .filter(p => /\.js$/.test(p)); const code = "require('fast-text-encoding');\n" + files.map(kv).join(';\n'); return { code,