chore: move to swc/jest (#7739)

* chore: move to swc

* chore: fix tax rate tests

* chore: undo failed test

* chore: fix unit tests script

* chore: use node 20

* Update scripts/run-workspace-unit-tests-in-chunks.sh
This commit is contained in:
Riqwan Thamir
2024-06-20 12:59:33 +02:00
committed by GitHub
parent f61557712c
commit 03924a4ff6
137 changed files with 386 additions and 419 deletions
@@ -15,6 +15,7 @@ import {
OptionalProps,
PrimaryKey,
Property,
Rel,
} from "@mikro-orm/core"
import Payment from "./payment"
import PaymentCollection from "./payment-collection"
@@ -60,7 +61,7 @@ export default class PaymentSession {
@ManyToOne(() => PaymentCollection, {
persist: false,
})
payment_collection: PaymentCollection
payment_collection: Rel<PaymentCollection>
@ManyToOne({
entity: () => PaymentCollection,
@@ -76,7 +77,7 @@ export default class PaymentSession {
nullable: true,
mappedBy: "payment_session",
})
payment?: Payment | null
payment?: Rel<Payment> | null
@Property({
onCreate: () => new Date(),