Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdad09e

Browse files
fix: fix ci failing
1 parent bf659be commit cdad09e

5 files changed

Lines changed: 3796 additions & 37 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: pnpm install
3030

3131
- name: Run tests
32-
run: pnpm test
32+
run: TS_NODE_PROJECT=tsconfig.mocha.json pnpm test
3333

3434
# Build job runs after test success
3535
build:

.mocharc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"require": "ts-node/register",
33
"extensions": ["ts"],
44
"spec": [
5-
"**/*spec.ts"
5+
"src/**/*spec.ts"
66
]
77
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "mocha",
7+
"test": "mocha --require ts-node/register --require tsconfig-paths/register 'src/**/*.spec.ts'",
88
"prepare": "husky",
99
"commit": "git-cz",
1010
"validate": "pnpm run format:check && pnpm run lint && pnpm run typecheck",
@@ -52,6 +52,7 @@
5252
"prettier": "^3.5.3",
5353
"sinon": "^19.0.2",
5454
"ts-node": "^10.9.2",
55+
"tsconfig-paths": "^4.2.0",
5556
"typescript": "^5.8.2",
5657
"typescript-eslint": "^8.26.0"
5758
},

0 commit comments

Comments
 (0)