support serverless environments (#29)

* add --executable-path

* tests

* test vercel

* fixes
This commit is contained in:
Chris Tate
2026-01-12 11:41:25 -06:00
committed by GitHub
parent 3cd0ab468f
commit 4f6fd8ec5c
13 changed files with 255 additions and 12 deletions
+10
View File
@@ -22,6 +22,16 @@ describe('BrowserManager', () => {
const page = browser.getPage();
expect(page).toBeDefined();
});
it('should reject invalid executablePath', async () => {
const testBrowser = new BrowserManager();
await expect(
testBrowser.launch({
headless: true,
executablePath: '/nonexistent/path/to/chromium',
})
).rejects.toThrow();
});
});
describe('navigation', () => {