mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
only include js files in frontend tests. fixes #834
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user