only include js files in frontend tests. fixes #834
This commit is contained in:
parent
bea7d30836
commit
3e65f3a906
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@ function kv(f) {
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = function() {
|
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');
|
const code = "require('fast-text-encoding');\n" + files.map(kv).join(';\n');
|
||||||
return {
|
return {
|
||||||
code,
|
code,
|
||||||
|
|
Loading…
Reference in a new issue