drop.chapril.org-firefoxsend/test/frontend/index.js

17 lines
365 B
JavaScript
Raw Normal View History

2018-02-21 05:31:27 +01:00
const fs = require('fs');
const path = require('path');
function kv(f) {
return `require('./tests/${f}')`;
}
module.exports = function() {
const files = fs.readdirSync(path.join(__dirname, 'tests'));
const code = files.map(kv).join(';\n');
return {
code,
dependencies: files.map(f => require.resolve('./tests/' + f)),
cacheable: false
};
};