Files
medusa-store/integration-tests/helpers/breaking.ts.txt
Riqwan Thamir 0573bb924a chore: Remove typeORM (#9005)
* chore: rename js files to txt

* chore: rename ts files to txt

* chore: delete environment helpers

* chore: convert global setup & teardown to txt

* chore: rename helper js/ts files to txt

* chore: rename seeder js/ts files to txt

* chore: remove typeorm

* chore: reintroduce used helpers
2024-09-05 15:45:30 +02:00

11 lines
186 B
Plaintext

export const breaking = (
v1Fn: (() => any) | null,
v2Fn?: (() => any) | null
) => {
if (process.env.MEDUSA_FF_MEDUSA_V2 === "true") {
return v2Fn?.()
}
return v1Fn?.()
}