// Loaded by `npm test` through `node --import`. Node runs the .ts sources directly (type stripping), but unlike tsc it does not // resolve extensionless relative imports such as `import { vatIncludedDecimal } from "./vat"` in src/checkout/paypal-order.ts. // The hook below retries such an import from a .ts file with ".ts" appended. Test files import sources with explicit .ts paths. import { register } from "node:module"; register("./resolve-ts.mjs", import.meta.url);