Skip to content

Commit ae4cbd8

Browse files
committed
just use the chrome version directly
1 parent fcc4778 commit ae4cbd8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/compass-e2e-tests/helpers/compass.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ import {
4343
import treeKill from 'tree-kill';
4444
import { downloadPath } from './downloads';
4545
import path from 'path';
46-
// @ts-expect-error no types for this package
47-
import { electronToChromium } from 'electron-to-chromium';
4846

4947
const killAsync = async (pid: number, signal?: string) => {
5048
return new Promise<void>((resolve, reject) => {
@@ -477,7 +475,7 @@ function execFileIgnoreError(
477475

478476
async function getChromiumVersionFromBinary(path: string) {
479477
const { stdout } = await execFileIgnoreError(path, ['--versions'], {});
480-
return electronToChromium(JSON.parse(stdout).electron);
478+
return JSON.parse(stdout).chrome;
481479
}
482480

483481
export async function runCompassOnce(args: string[], timeout = 30_000) {

0 commit comments

Comments
 (0)