(path)
| 217 | return promise; |
| 218 | } |
| 219 | readdirSync(path) { |
| 220 | const cached = this.#readdirCache.get(path); |
| 221 | if (cached) { |
| 222 | return cached; |
| 223 | } |
| 224 | let val; |
| 225 | try { |
| 226 | val = readdirSync(path, { __proto__: null, withFileTypes: true }); |
| 227 | } catch { |
| 228 | val = []; |
| 229 | } |
| 230 | this.#readdirCache.set(path, val); |
| 231 | return val; |
| 232 | } |
| 233 | add(path, pattern) { |
| 234 | let cache = this.#cache.get(path); |
| 235 | if (!cache) { |
no test coverage detected