(dir)
| 4 | import { resolve } from 'node:path' |
| 5 | |
| 6 | async function* walk(dir) { |
| 7 | const dirents = await readdir(dir, { withFileTypes: true }) |
| 8 | for (const dirent of dirents) { |
| 9 | const res = resolve(dir, dirent.name) |
| 10 | if (dirent.isDirectory()) { |
| 11 | yield* walk(res) |
| 12 | } else { |
| 13 | yield res |
| 14 | } |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | const factory = new LuaFactory() |
| 19 | const testsPath = import.meta.resolve('../lua/testes') |