9 lines
238 B
JavaScript
9 lines
238 B
JavaScript
![]() |
const fs = require('fs');
|
||
|
const path = require('path');
|
||
|
|
||
|
const testsDir = path.join(__dirname, "tests");
|
||
|
module.exports = fs.readdirSync(testsDir).map(name => ({
|
||
|
name,
|
||
|
content: fs.readFileSync(path.join(testsDir, name), "utf8"),
|
||
|
}));
|