Files
shop/tests/unit/support/register.mjs
T
libretech d46bc9380e
build / test (push) Successful in 10s
build / build (push) Skipped
Checkout: forward only the checkout fields, show clear errors, fix the contact form (#16)
Co-authored-by: Michael Czechowski <mail@librete.ch>
2026-10-15 10:31:57 +02:00

7 lines
468 B
JavaScript

// Loaded by `npm test` through `node --import`. Node runs the .ts sources directly (type stripping), but unlike Vite and Nitro it does
// not resolve extensionless relative imports such as `import { … } from "./cmsError"` in a server/utils module.
// 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);