Skip to content

Commit

Permalink
testing: create basic unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
acro5piano committed Jun 23, 2024
1 parent 4af8f21 commit e0d24a4
Show file tree
Hide file tree
Showing 8 changed files with 462 additions and 5 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
db:
image: postgres:16.3-alpine
ports:
- '45432:5432'
environment:
POSTGRES_PASSWORD: postgres
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"README.md"
],
"scripts": {
"test": "node -r esbuild-register --test 'tests/*.test.ts'",
"prepublish": "tsc",
"build": "tsc",
"r": "tsc && node dist/index.js"
Expand All @@ -29,6 +30,9 @@
"devDependencies": {
"@types/node": "^20.14.8",
"@types/pg": "^8.11.6",
"esbuild": "^0.21.5",
"esbuild-register": "^3.5.0",
"execa": "^9.3.0",
"kysely": "^0.24.2",
"pg": "^8.12.0",
"typescript": "^5.5.2"
Expand Down
Loading

0 comments on commit e0d24a4

Please sign in to comment.