Skip to content

Commit

Permalink
chore: fix test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Apr 22, 2024
1 parent f3fd25d commit b6f042f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"lcov-report": "nyc report --reporter=lcov",
"dev": "cross-env NODE_ENV=development nodemon --watch './src/**/*.ts' --exec node --loader ts-node/esm ./src/start.ts",
"lint": "eslint src --ext .ts",
"test": "NODE_OPTIONS=--experimental-vm-modules npx jest --detectOpenHandles --runInBand --testTimeout=30000",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --detectOpenHandles --runInBand --testTimeout=30000",
"coverage": "c8 npm run test && npm run lcov-report",
"postinstall": "rm -rf ./node_modules/@josephg/resolvable/index.ts",
"prepare": "node -e \"try { require('husky').install() } catch (e) {}\""
Expand Down
8 changes: 5 additions & 3 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "test"
"types": ["jest", "node", "@types/jest"],
"module": "ESNext",
"moduleResolution": "Node10"
},
"extends": "./tsconfig.json",
"include": [
"./test/**/*.ts"
]
}
}

0 comments on commit b6f042f

Please sign in to comment.