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

Commit 49642da

Browse files
committed
Add npm run test-types to check ./src & ./test types.
1 parent 78449c1 commit 49642da

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
run: npm ci
4949
- name: npm run eslint
5050
run: npm run eslint
51+
- name: test-types
52+
run: npm run test-types
5153

5254
test:
5355
name: Test Unit using Node ${{ matrix.node-version }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"eslint": "eslint --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'",
2828
"test": "jest --detectOpenHandles",
2929
"test-unit": "jest test/unit --detectOpenHandles",
30+
"test-types": "tsc --noEmit --project ./tsconfig.test.json",
3031
"coverage": "jest --coverage",
3132
"test-integration": "jest --forceExit test/integration",
3233
"test-integration-no-resend": "jest --forceExit --testTimeout=10000 --testPathIgnorePatterns='resend|Resend' --testNamePattern='^((?!(resend|Resend|resent|Resent|gap|Gap)).)*$' test/integration/*.test.js",

tsconfig.test.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src/**/*", "contracts/**/*", "test/**/*"],
4+
"exclude": ["node_modules", "dist", "test/legacy/*"]
5+
}

0 commit comments

Comments
 (0)