Skip to content

Commit

Permalink
test: integrate with automd on repo
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 21, 2024
1 parent 6ee0d6b commit c66a576
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/_setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { automd } from "../src";

console.log("Starting automd with watcher on repo...");
const { unwatch } = await automd({
watch: true,
});

export const seup = async () => {};

export const teardown = async () => {
await unwatch?.();
};
7 changes: 7 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
globalSetup: "./test/_setup.ts",
},
});

0 comments on commit c66a576

Please sign in to comment.