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
+4 -3
View File
@@ -18,6 +18,7 @@ import {
OptionalProps,
PrimaryKey,
Property,
Rel,
} from "@mikro-orm/core"
import PriceList from "./price-list"
import PriceRule from "./price-rule"
@@ -87,7 +88,7 @@ export default class Price {
price_set_id: string
@ManyToOne(() => PriceSet, { persist: false })
price_set?: PriceSet
price_set?: Rel<PriceSet>
@Property({ columnType: "integer", default: 0 })
rules_count: number = 0
@@ -97,7 +98,7 @@ export default class Price {
mappedBy: (pr) => pr.price,
cascade: [Cascade.PERSIST, "soft-remove" as Cascade],
})
price_rules = new Collection<PriceRule>(this)
price_rules = new Collection<Rel<PriceRule>>(this)
@PricePriceListIdIndex.MikroORMIndex()
@ManyToOne(() => PriceList, {
@@ -110,7 +111,7 @@ export default class Price {
price_list_id: string | null = null
@ManyToOne(() => PriceList, { persist: false, nullable: true })
price_list: PriceList | null = null
price_list: Rel<PriceList> | null = null
@Property({
onCreate: () => new Date(),