From 45fe365d58db75e833be1c5880230c6f19fdbcf9 Mon Sep 17 00:00:00 2001 From: robby <122219240+resslr@users.noreply.github.com> Date: Wed, 8 Jan 2025 13:56:13 -0500 Subject: [PATCH] fix checks --- .../src/cli/commands/install.ts | 18 +++++++++++++++++- .../src/cli/commands/ls.test.ts | 16 ++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/packages/playwright-core/src/cli/commands/install.ts b/packages/playwright-core/src/cli/commands/install.ts index a2de797f54..420cd1963d 100644 --- a/packages/playwright-core/src/cli/commands/install.ts +++ b/packages/playwright-core/src/cli/commands/install.ts @@ -1,3 +1,19 @@ +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { registry } from '../../server'; import { gracefullyProcessExitDoNotHang } from '../../utils'; @@ -13,7 +29,7 @@ async function listInstalledBrowsers() { } } } catch (e) { - console.log(`Failed to list installed browsers\n${e}`); + console.error(`Failed to list installed browsers\n${e}`); gracefullyProcessExitDoNotHang(1); } } diff --git a/packages/playwright-core/src/cli/commands/ls.test.ts b/packages/playwright-core/src/cli/commands/ls.test.ts index c8a7fd2160..03dcb90515 100644 --- a/packages/playwright-core/src/cli/commands/ls.test.ts +++ b/packages/playwright-core/src/cli/commands/ls.test.ts @@ -1,3 +1,19 @@ +/** + * Copyright (c) Microsoft Corporation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { execSync } from 'child_process'; import { expect, test } from '@playwright/test';