Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
test: setup test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhw0 committed Apr 21, 2023
1 parent c748261 commit 8671243
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
.PHONY: all test clean

build:
yarn tsc

test:
yarn tap --reporter tap --no-coverage --node-arg=--require=ts-node/register test/*
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@
"private": false,
"dependencies": {
"typescript": "^5.0.4"
},
"devDependencies": {
"@types/tap": "^15.0.8",
"tap": "^16.3.4",
"ts-node": "^10.9.1"
}
}
6 changes: 6 additions & 0 deletions test/test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {test, ok} from "tap";

test("case name", function (testcase) {
ok(true, "should not fail");
testcase.end();
});
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/* Modules */
"module": "commonjs", /* Specify what module code is generated. */
"rootDir": "./src", /* Specify the root folder within your source files. */
"rootDir": "src", /* Specify the root folder within your source files. */
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
Expand Down

0 comments on commit 8671243

Please sign in to comment.