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:
@@ -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`,
|
testEnvironment: `node`,
|
||||||
moduleFileExtensions: [`js`, `ts`],
|
moduleFileExtensions: [`js`, `ts`],
|
||||||
testTimeout: 30000,
|
testTimeout: 60000,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,6 +82,11 @@ describe("command oas", () => {
|
|||||||
describe("--type admin", () => {
|
describe("--type admin", () => {
|
||||||
let oas: OpenAPIObject
|
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 () => {
|
beforeAll(async () => {
|
||||||
const outDir = path.resolve(tmpDir, uid())
|
const outDir = path.resolve(tmpDir, uid())
|
||||||
await runCLI("oas", ["--type", "admin", "--out-dir", outDir])
|
await runCLI("oas", ["--type", "admin", "--out-dir", outDir])
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"include": ["src"],
|
||||||
|
"exclude": ["node_modules"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user