diff --git a/jest.config.cjs b/jest.config.cjs index 3c87e55..82433ce 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -5,7 +5,6 @@ module.exports = { verbose: false, silent: true, detectOpenHandles: true, - runInBand: true, forceExit: true, testTimeout: 40000, testEnvironment: 'node', diff --git a/package-lock.json b/package-lock.json index c180544..b18d51c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,6 +31,7 @@ "@typescript-eslint/parser": "^7.14.1", "c8": "^10.1.2", "coveralls": "^3.1.1", + "cross-env": "^7.0.3", "cz-conventional-changelog": "^3.3.0", "esbuild": "^0.21.4", "eslint": "^8.56.0", @@ -8044,6 +8045,25 @@ "optional": true, "peer": true }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, "node_modules/cross-inspect": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/cross-inspect/-/cross-inspect-1.0.1.tgz", diff --git a/package.json b/package.json index a87d4df..1321c4e 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "yamlparser": "^0.0.2" }, "devDependencies": { + "cross-env": "^7.0.3", "@commitlint/cli": "^19.2.2", "@commitlint/config-conventional": "^19.2.2", "@jest/globals": "^29.7.0", @@ -66,7 +67,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", + "test": "NODE_OPTIONS=--experimental-vm-modules cross-env NODE_ENV=test jest --runInBand", "postinstall": "rm -rf ./node_modules/@josephg/resolvable/index.ts", "prepare": "node -e \"try { require('husky').install() } catch (e) {}\"" },