Skip to content

Commit cfaec9c

Browse files
committed
chore: fixed type cast error
1 parent c86de45 commit cfaec9c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import logger from 'debug';
99
import type {Browser} from 'puppeteer';
1010
import puppeteer, {Locator} from 'puppeteer';
1111
import type {
12+
ChromeReleaseChannel,
1213
Frame,
1314
HTTPRequest,
1415
HTTPResponse,
@@ -51,7 +52,7 @@ export async function withBrowser(
5152
) {
5253
const launchOptions: LaunchOptions = {
5354
executablePath: process.env.PUPPETEER_EXECUTABLE_PATH,
54-
channel: options.channel as any,
55+
channel: options.channel as ChromeReleaseChannel,
5556
headless: !options.debug,
5657
defaultViewport: null,
5758
devtools: options.autoOpenDevTools ?? false,

0 commit comments

Comments
 (0)