fix(build): update toolchain configuration and test error handling for stricter TypeScript builds
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user