diff --git a/lib/suite.js b/lib/suite.js index 796d55c..e2ceb28 100644 --- a/lib/suite.js +++ b/lib/suite.js @@ -1,10 +1,10 @@ import { readdir } from 'node:fs/promises' import { join } from 'node:path' -const walkDir = async function* (dir = '.', ignores = []) { +const walkDir = async function* (dir = '.', exclude = []) { const files = await readdir(dir, { withFileTypes: true }) for (const file of files) { - if (ignores.includes(file.name)) continue + if (exclude.includes(file.name)) continue if (file.isDirectory()) { yield* walkDir(join(dir, file.name))