Skip to content

Commit

Permalink
adds command to run unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dopeamin committed Oct 1, 2024
1 parent f51c07e commit 05eb177
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ clean:
test:
@npx jest --coverage

.PHONY: unit_test
unit_test:
@npx jest --coverage "tests/unit"

.PHONY: cjs/build
cjs/build: $(SOURCE_FILES)
npx tsc -p tsconfig.cjs.json
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"generate-openapi": "make openapi_generate",
"prepublishOnly": "make build",
"test": "make test",
"unit-test": "make unit_test",
"lint": "make lint",
"fix": "make fix",
"tsc": "tsc",
Expand Down

0 comments on commit 05eb177

Please sign in to comment.