Nomad changes
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s

This commit is contained in:
Henrik Jess Nielsen
2026-06-01 23:40:55 +02:00
parent 72b1a0a6ed
commit b4c07d3693
5723 changed files with 1130655 additions and 0 deletions

19
e2e/node/test-debug.mjs generated Normal file
View File

@@ -0,0 +1,19 @@
import { extractFileSync } from "kreuzberg";
import { fileURLToPath } from "url";
import { dirname, join } from "path";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const testDocumentsDir = join(__dirname, "..", "..", "test_documents");
process.chdir(testDocumentsDir);
const result = extractFileSync("docx/fake.docx", undefined, {
includeDocumentStructure: true,
});
console.log("result.document:", result.document);
console.log('result.document ?? "":', result.document ?? "");
const fallback = result.document ?? "";
console.log("fallback:", fallback);
console.log("fallback.length:", fallback.length);
console.log("typeof fallback.length:", typeof fallback.length);