helps manage and harmonise READMEs in many repositories with template files available on deno.land/x/readme_manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
readme-manager/setup_test.ts

22 lines
571 B

import { getLogger } from "https://deno.land/std@0.146.0/log/mod.ts";
import { setup } from "./setup.ts";
Deno.test("setup", async (t) => {
const testingDir = await Deno.makeTempDir();
const testingFile = await Deno.makeTempFile();
await Deno.remove(testingDir);
await t.step("setups", async () => {
await setup(
"testing-readme-manager",
testingFile,
getLogger(),
(_errorMsg: string, _error?: Error) => {},
testingDir,
);
});
await Deno.remove(testingDir, { recursive: true });
await Deno.remove(testingFile);
});