mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
12 lines
227 B
JavaScript
12 lines
227 B
JavaScript
|
const dirs = Deno.readDir("./bins/bin");
|
||
|
|
||
|
let found = false;
|
||
|
for await (const entry of dirs) {
|
||
|
if (entry.name.includes("deno-test-bin")) {
|
||
|
found = true;
|
||
|
}
|
||
|
}
|
||
|
if (!found) {
|
||
|
throw new Error("Failed to find test bin");
|
||
|
}
|