chore(integration-tests): Add jest timeout to workflow tests (#5401)
This commit is contained in:
1 parent
fc01375a8d
commit
9c362f7214
2 files changed
+16
-18
No files matched your search
@@ -1,16 +1,17 @@
|
|||||||
import path from "path"
|
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
|
||||||
import { initDb, useDb } from "../../../../environment-helpers/use-db"
|
import { IInventoryService, WorkflowTypes } from "@medusajs/types"
|
||||||
import { bootstrapApp } from "../../../../environment-helpers/bootstrap-app"
|
|
||||||
import {
|
import {
|
||||||
createInventoryItems,
|
|
||||||
CreateInventoryItemActions,
|
CreateInventoryItemActions,
|
||||||
|
createInventoryItems,
|
||||||
pipe,
|
pipe,
|
||||||
} from "@medusajs/workflows"
|
} from "@medusajs/workflows"
|
||||||
import { IInventoryService, WorkflowTypes } from "@medusajs/types"
|
import path from "path"
|
||||||
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
|
import { bootstrapApp } from "../../../../environment-helpers/bootstrap-app"
|
||||||
|
import { initDb, useDb } from "../../../../environment-helpers/use-db"
|
||||||
|
|
||||||
|
jest.setTimeout(30000)
|
||||||
|
|
||||||
describe("CreateInventoryItem workflow", function () {
|
describe("CreateInventoryItem workflow", function () {
|
||||||
let medusaProcess
|
|
||||||
let medusaContainer
|
let medusaContainer
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
@@ -23,8 +24,6 @@ describe("CreateInventoryItem workflow", function () {
|
|||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
const db = useDb()
|
const db = useDb()
|
||||||
await db.shutdown()
|
await db.shutdown()
|
||||||
|
|
||||||
medusaProcess.kill()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should compensate all the invoke if something fails", async () => {
|
it("should compensate all the invoke if something fails", async () => {
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
import path from "path"
|
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
|
||||||
import { initDb, useDb } from "../../../../environment-helpers/use-db"
|
import { IProductModuleService, WorkflowTypes } from "@medusajs/types"
|
||||||
import { bootstrapApp } from "../../../../environment-helpers/bootstrap-app"
|
|
||||||
import {
|
import {
|
||||||
createProducts,
|
|
||||||
CreateProductsActions,
|
CreateProductsActions,
|
||||||
Handlers,
|
Handlers,
|
||||||
|
createProducts,
|
||||||
pipe,
|
pipe,
|
||||||
} from "@medusajs/workflows"
|
} from "@medusajs/workflows"
|
||||||
import { IProductModuleService, WorkflowTypes } from "@medusajs/types"
|
import path from "path"
|
||||||
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
|
import { bootstrapApp } from "../../../../environment-helpers/bootstrap-app"
|
||||||
|
import { initDb, useDb } from "../../../../environment-helpers/use-db"
|
||||||
|
|
||||||
|
jest.setTimeout(30000)
|
||||||
|
|
||||||
describe("CreateProduct workflow", function () {
|
describe("CreateProduct workflow", function () {
|
||||||
let medusaProcess
|
|
||||||
let medusaContainer
|
let medusaContainer
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
@@ -24,8 +25,6 @@ describe("CreateProduct workflow", function () {
|
|||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
const db = useDb()
|
const db = useDb()
|
||||||
await db.shutdown()
|
await db.shutdown()
|
||||||
|
|
||||||
medusaProcess.kill()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should compensate all the invoke if something fails", async () => {
|
it("should compensate all the invoke if something fails", async () => {
|
||||||
|
|||||||
Reference in new issue
Block a user