oden/third-party/vendor/deno_ast/scripts/03_test.ts
2024-03-08 11:03:01 -08:00

15 lines
458 B
TypeScript

// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { $ } from "./deps.ts";
import { Repos } from "./repos.ts";
const repos = await Repos.load();
let hadConfirmed = false;
for (const crate of repos.getCrates()) {
if (hadConfirmed || confirm(`Do you want to run tests for ${crate.name}?`)) {
hadConfirmed = true;
$.logStep("Running tests", `for ${crate.name}...`);
await crate.test({ allFeatures: true });
}
}