refactor(medusa): cleanup, fix, migrate baseService and therefore fix errors (#1701)

* refactor(medusa): cleanup, fix, migrate baseService and therefore fix errors for ts version > 4.5

* test(medusa): Fix discount tests

* fix(medusa): build

* feat(medusa): Remove unnecessary await
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2022-06-22 12:23:56 +02:00
1 parent 7302d76e12
commit 0e34800573
9 files changed
+460 -444

No files matched your search

@@ -761,7 +761,9 @@ describe("DiscountService", () => {
let discountService
beforeEach(async () => {
discountService = new DiscountService({})
discountService = new DiscountService({
manager: MockManager
})
const hasReachedLimitMock = jest.fn().mockImplementation(() => false)
const isDisabledMock = jest.fn().mockImplementation(() => false)
const isValidForRegionMock = jest
@@ -1064,7 +1066,9 @@ describe("DiscountService", () => {
}
})
const discountService = new DiscountService({})
const discountService = new DiscountService({
manager: MockManager
})
discountService.retrieve = retrieveMock
beforeEach(() => {