fix(browser): update browser context creation for current Puppeteer API and refresh build configuration

This commit is contained in:
2026-05-01 16:26:59 +00:00
parent 5b8eb43181
commit 24aa17f6bc
11 changed files with 3530 additions and 5764 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
import { expect, tap } from '@push.rocks/tapbundle';
import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as smartpuppeteer from '../ts/index.js';
tap.test('should use pipe', async (tools) => {
tap.test('should use pipe', async () => {
const headlessBrowser = await smartpuppeteer.getEnvAwareBrowserInstance({
forceNoSandbox: false,
});
@@ -12,7 +12,7 @@ tap.test('should use pipe', async (tools) => {
await headlessBrowser.close();
});
tap.test('should use websocket', async (tools) => {
tap.test('should use websocket', async () => {
const headlessBrowser = await smartpuppeteer.getEnvAwareBrowserInstance({
forceNoSandbox: false,
usePipe: false,
@@ -31,4 +31,4 @@ tap.test('should get and stop an Incognito browser', async () => {
await incognitoInstance.stop();
});
tap.start();
export default tap.start();