mirror of
https://github.com/vyme-fr/MercuryCloud_Dashboard.git
synced 2026-01-19 00:57:23 +01:00
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
(async () => {
|
|
console.log('Running all tests...');
|
|
const { readdirSync } = require('fs');
|
|
let count = 0;
|
|
|
|
for (const mod of readdirSync(__dirname)) {
|
|
if (!mod.endsWith('.test.js')) continue;
|
|
|
|
console.log(`\nRunning Test #${count++}\n`+ '='.repeat(20));
|
|
require(`${__dirname}/${mod}`);
|
|
}
|
|
console.log('Completed all tests.');
|
|
})();
|