diff --git a/_template/main.spec.ts b/_template/main.spec.ts new file mode 100644 index 0000000..f0d7379 --- /dev/null +++ b/_template/main.spec.ts @@ -0,0 +1,14 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ + +import { describe, it, expect } from "vitest"; +import { doThing } from "./main.js"; + +describe("mineColor", () => { + it("should do the thing", () => { + expect(doThing()).toBe(true); + }); +}); diff --git a/_template/main.ts b/_template/main.ts new file mode 100644 index 0000000..1cba757 --- /dev/null +++ b/_template/main.ts @@ -0,0 +1,16 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ + +/** + * Does a thing. + * @returns The result of the thing. + * @see https://nhcarrigan.com + */ +const doThing = (): boolean => { + return true; +}; + +export { doThing }; diff --git a/tsconfig.json b/tsconfig.json index de77f0e..50a2145 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,5 +4,5 @@ "rootDir": "./src", "noEmit": true }, - "exclude": ["vitest.config.ts"] + "exclude": ["vitest.config.ts", "_template/**/*"] } \ No newline at end of file