Skip to content

Commit

Permalink
fix(test): fix jest test config
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Jul 22, 2024
1 parent 5c4e72e commit a3019d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
module.exports = {
preset: 'ts-jest/presets/default-esm',
resolver: 'ts-jest-resolver',
verbose: true,
verbose: false,
silent: true,
detectOpenHandles: true,
runInBand: true,
forceExit: true,
testTimeout: 40000,
testEnvironment: 'node',
collectCoverage: true,
coverageReporters: ["json", "text", "lcov"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"build:es": "esbuild ./src/start.ts --bundle --platform=node --outfile=lib/start.cjs --tree-shaking=true --sourcemap=inline",
"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 cross-env NODE_ENV=test jest --detectOpenHandles --runInBand --testTimeout=40000 --forceExit",
"test": "NODE_OPTIONS=--experimental-vm-modules cross-env NODE_ENV=test jest",
"postinstall": "rm -rf ./node_modules/@josephg/resolvable/index.ts",
"prepare": "node -e \"try { require('husky').install() } catch (e) {}\""
},
Expand Down

0 comments on commit a3019d6

Please sign in to comment.