import test from 'node:test' import assert from 'node:assert/strict' import { readFileSync } from 'node:fs' import ts from 'typescript' const source = readFileSync(new URL('./transferCartonPrinting.ts', import.meta.url), 'utf8') const js = ts.transpileModule(source, { compilerOptions: { module: ts.ModuleKind.CommonJS } }).outputText const exports = {} new Function('exports', js)(exports) const prepare = exports.prepareTransferCartonLabels test('prints forecast counts independently of quantities or order fields and escapes cargo', () => { const rows = [{ sku: 'A