fix(build): update toolchain configuration and test error handling for stricter TypeScript builds

This commit is contained in:
2026-04-30 11:56:25 +00:00
parent a51b002141
commit 7339d6c9f0
8 changed files with 2622 additions and 5938 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ tap.test('analyzeDocuments should analyze a PDF', async () => {
console.log('Document analysis result:', result);
expect(result).toBeTruthy();
} catch (error) {
console.log('Document test failed (may need puppeteer):', error.message);
const message = error instanceof Error ? error.message : String(error);
console.log('Document test failed (may need puppeteer):', message);
} finally {
await stopSmartpdf();
}