fix(smartpdf): harden browser lifecycle, port handling, and PDF result metadata

This commit is contained in:
2026-04-30 11:00:14 +00:00
parent 5b1615d359
commit b5ad88c33b
8 changed files with 1796 additions and 2686 deletions
+3 -2
View File
@@ -84,7 +84,8 @@ tap.test('should throw error when specific port is already in use', async () =>
await instance2.start();
} catch (error) {
errorThrown = true;
expect(error.message).toInclude('already in use');
expect(error).toBeInstanceOf(Error);
expect((error as Error).message).toInclude('already in use');
}
expect(errorThrown).toBeTrue();
@@ -94,4 +95,4 @@ tap.test('should throw error when specific port is already in use', async () =>
export default tap.start();
export default tap.start();