fix(oas:test): Augment jest timeout from 30 to 60 sec (#3631)
* fix(oas:test): fix beforeAll timeout silent failure * fix(test): fix ts-jest scaffolding in medusa-oas-cli * chore(changeset): patch
This commit is contained in:
5
.changeset/poor-bulldogs-repeat.md
Normal file
5
.changeset/poor-bulldogs-repeat.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa-oas-cli": patch
|
||||
---
|
||||
|
||||
fix(oas:test): fix beforeAll timeout silent failure
|
||||
@@ -10,5 +10,5 @@ module.exports = {
|
||||
},
|
||||
testEnvironment: `node`,
|
||||
moduleFileExtensions: [`js`, `ts`],
|
||||
testTimeout: 30000,
|
||||
testTimeout: 60000,
|
||||
}
|
||||
|
||||
@@ -82,6 +82,11 @@ describe("command oas", () => {
|
||||
describe("--type admin", () => {
|
||||
let oas: OpenAPIObject
|
||||
|
||||
/**
|
||||
* In a CI context, beforeAll might exceed the configured jest timeout.
|
||||
* Until we upgrade our jest version, the timeout error will be swallowed
|
||||
* and the test will fail in unexpected ways.
|
||||
*/
|
||||
beforeAll(async () => {
|
||||
const outDir = path.resolve(tmpDir, uid())
|
||||
await runCLI("oas", ["--type", "admin", "--out-dir", outDir])
|
||||
|
||||
5
packages/oas/medusa-oas-cli/tsconfig.spec.json
Normal file
5
packages/oas/medusa-oas-cli/tsconfig.spec.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
Reference in New Issue
Block a user