Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Commit eb157ba

Browse files
committed
chore(scripts/generate): πŸ— Add snippets-test to module template
1 parent c2cd338 commit eb157ba

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

β€Žscripts/generate/source/generators/module/templates/module.test.ts.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { returns, throws } from "@terminal-nerds/snippets-test/unit";
12
import { describe, expect, it } from "vitest";
23

34
import {} from "./{{ kebabCase moduleName }}.js";

β€Žscripts/generate/source/generators/package/templates/package/package.json.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,8 @@
5959
"lint:pkg": "syncpack list-mismatches",
6060
"lint:types": "tsc --noEmit",
6161
"test:unit": "vitest run --dir \"./source\""
62+
},
63+
"devDependencies": {
64+
"@terminal-nerds/snippets-test": "workspace:*"
6265
}
6366
}

β€Žscripts/generate/source/generators/package/templates/package/tsconfig.json.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"compilerOptions": {
55
"tsBuildInfoFile": "./node_modules/.cache/tsbuildinfo"
66
},
7-
"exclude": ["dist/", "node_modules/"],
8-
"include": ["coverage/", "source/", "tests/", "./tsup.config.ts", "../../types/*.d.ts"]
7+
"exclude": ["coverage/", "dist/", "node_modules/"],
8+
"include": ["source/", "tests/", "./tsup.config.ts", "../../types/*.d.ts"]
99
}

0 commit comments

Comments
Β (0)