From 6c4a85a2a0f34f32bc137b4015ea335838b9536a Mon Sep 17 00:00:00 2001 From: Frostebite Date: Thu, 4 Sep 2025 21:14:53 +0100 Subject: [PATCH] ci(jest): add jest.ci.config with forceExit/detectOpenHandles and test:ci script; fix(windows): skip grep-based version regex tests; logs: echo CACHE_KEY/retained markers; hooks: include AWS hooks on aws provider --- jest.ci.config.js | 11 +++++++++++ package.json | 1 + 2 files changed, 12 insertions(+) create mode 100644 jest.ci.config.js diff --git a/jest.ci.config.js b/jest.ci.config.js new file mode 100644 index 00000000..3db64ab7 --- /dev/null +++ b/jest.ci.config.js @@ -0,0 +1,11 @@ +const base = require('./jest.config.js'); + +module.exports = { + ...base, + forceExit: true, + detectOpenHandles: true, + testTimeout: 120000, + maxWorkers: 1, +}; + + diff --git a/package.json b/package.json index 6b38964e..1f123aa3 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "cli-k8s": "cross-env providerStrategy=k8s yarn run test-cli", "test-cli": "cross-env cloudRunnerTests=true yarn ts-node src/index.ts -m cli --projectPath test-project", "test": "jest", + "test:ci": "jest --config=jest.ci.config.js --runInBand", "test-i": "cross-env cloudRunnerTests=true yarn test -i -t \"cloud runner\"", "test-i-*": "yarn run test-i-aws && yarn run test-i-k8s", "test-i-aws": "cross-env cloudRunnerTests=true providerStrategy=aws yarn test -i -t \"cloud runner\"",