@opengis/fastify-table
Version:
core-plugins
22 lines (21 loc) • 763 B
JavaScript
import { beforeEach, afterEach, afterAll } from "vitest";
import { build, teardown } from "./helper.js";
beforeEach(async () => {
if (process.env.trace === "true")
console.log("build after each bun test start...");
await build();
if (process.env.trace === "true")
console.log("build after each bun test finished");
});
afterEach(async () => {
if (process.env.trace === "true")
console.log("teardown after each bun test start...");
// await teardown();
if (process.env.trace === "true")
console.log("teardown after each bun test finished");
});
afterAll(async () => {
console.log("teardown after all bun test start...");
await teardown();
console.log("teardown after all bun test finished");
});