fix: integration tests modules expectations (#6848)

**What**
- fix tests
- cleanup deprecated jest conf
This commit is contained in:
Adrien de Peretti
2024-03-27 15:39:20 +00:00
committed by GitHub
parent 5d9aea053c
commit d4d1f9b2f2
41 changed files with 41 additions and 63 deletions
@@ -37,7 +37,7 @@ medusaIntegrationTestRunner({
application_method: {
type: "fixed",
target_type: "order",
value: "100",
value: 100,
},
},
])
@@ -69,14 +69,14 @@ medusaIntegrationTestRunner({
})
it("should get all promotions and its count filtered", async () => {
const [createdPromotion] = await promotionModuleService.create([
await promotionModuleService.create([
{
code: "TEST",
type: PromotionType.STANDARD,
application_method: {
type: "fixed",
target_type: "order",
value: "100",
value: 100,
},
},
])
@@ -95,7 +95,6 @@ medusaIntegrationTestRunner({
created_at: expect.any(String),
application_method: {
id: expect.any(String),
promotion: expect.any(Object),
},
},
])
@@ -75,7 +75,6 @@ medusaIntegrationTestRunner({
ends_at: expect.any(String),
budget: {
id: expect.any(String),
campaign: expect.any(Object),
type: "spend",
limit: 1000,
raw_limit: {