豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 765ad8c

Browse files
committed
chore: fixed type cast error
1 parent d0ec2ea commit 765ad8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)