chore(medusa): Typeorm upgrade to 0.3.11 (#3041)

This commit is contained in:
Riqwan Thamir
2023-02-15 16:25:30 +01:00
committed by GitHub
parent 8137061908
commit 121b42acfe
275 changed files with 4493 additions and 4780 deletions
@@ -92,7 +92,7 @@ describe("/admin/shipping-options", () => {
)
})
it("fails as it is not allowed to set id from client side", async () => {
it("fails to add a a requirement with an id if it does not exists", async () => {
const api = useApi()
const payload = {
@@ -123,7 +123,9 @@ describe("/admin/shipping-options", () => {
})
expect(res.status).toEqual(400)
expect(res.data.message).toEqual("ID does not exist")
expect(res.data.message).toEqual(
"Shipping option requirement with id not_allowed does not exist"
)
})
it("it successfully updates a set of existing requirements", async () => {
@@ -274,7 +276,9 @@ describe("/admin/shipping-options", () => {
const manager = dbConnection.manager
const defaultProfile = await manager.findOne(ShippingProfile, {
type: "default",
where: {
type: ShippingProfile.default,
},
})
payload = {
@@ -521,7 +525,9 @@ describe("[MEDUSA_FF_TAX_INCLUSIVE_PRICING] /admin/shipping-options", () => {
const defaultProfile = await dbConnection.manager.findOne(
ShippingProfile,
{
type: "default",
where: {
type: ShippingProfile.default,
},
}
)