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\"",