fix(utils): bignumber util considers nullable options when setting value (#6499)

what:

- when setting null for nullable columns, big number utils should not throw error
- remove circular soft delete depenedencies for cart module
- trims zeros on big number values
This commit is contained in:
Riqwan Thamir
2024-02-26 11:29:36 +00:00
committed by GitHub
parent 56cbf88115
commit 8ea37d03c9
10 changed files with 106 additions and 45 deletions
@@ -1,15 +1,15 @@
import { IPaymentModuleService } from "@medusajs/types"
import { Modules } from "@medusajs/modules-sdk"
import { IPaymentModuleService } from "@medusajs/types"
import {
moduleIntegrationTestRunner,
SuiteOptions,
} from "medusa-test-utils/dist"
import {
createPaymentCollections,
createPayments,
createPaymentSessions,
} from "../../../__fixtures__"
import {
moduleIntegrationTestRunner,
SuiteOptions,
} from "medusa-test-utils/dist"
jest.setTimeout(30000)
@@ -466,7 +466,7 @@ moduleIntegrationTestRunner({
id: expect.any(String),
currency_code: "usd",
amount: 100,
raw_amount: { value: "100.00000000000000000", precision: 20 },
raw_amount: { value: "100", precision: 20 },
provider_id: "system",
data: {},
status: "authorized",