Skip to content

Commit c339f72

Browse files
committed
test: add tests to the project (#20)
1 parent fdbbc5a commit c339f72

File tree

7 files changed

+643
-6
lines changed

7 files changed

+643
-6
lines changed

.github/workflows/integration.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
- name: Lint project
4646
run: pnpm lint
4747

48+
- name: Test project
49+
run: pnpm test
50+
4851
- name: Build project
4952
run: pnpm build
5053

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"build": "tsup-node src/main.ts",
1010
"dev": "tsup-node src/main.ts --watch --on-success \"clear && node --enable-source-maps -r dotenv/config dist/main.js\"",
1111
"lint": "eslint src/**/*.ts --report-unused-disable-directives",
12-
"typecheck": "tsc --noEmit"
12+
"typecheck": "tsc --noEmit",
13+
"test": "vitest"
1314
},
1415
"dependencies": {
1516
"@keyv/redis": "2.7.0",
@@ -35,7 +36,8 @@
3536
"prettier": "3.0.0",
3637
"tsup": "7.2.0",
3738
"type-fest": "4.1.0",
38-
"typescript": "5.1.6"
39+
"typescript": "5.1.6",
40+
"vitest": "0.34.1"
3941
},
4042
"packageManager": "[email protected]",
4143
"engines": {

0 commit comments

Comments
 (0)