Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions scripts/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
...files,
];

function installChrome(version) {

Check failure on line 62 in scripts/test.mjs

View workflow job for this annotation

GitHub Actions / [Required] Check correct format

'installChrome' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 62 in scripts/test.mjs

View workflow job for this annotation

GitHub Actions / [Required] Check docs updated

'installChrome' is defined but never used. Allowed unused vars must match /^_/u
try {
return execSync(
`npx puppeteer browsers install chrome@${version} --format "{{path}}"`,
Expand Down Expand Up @@ -92,9 +92,6 @@
});
}

const chromePath = installChrome('146.0.7680.31');
process.env.CHROME_M146_EXECUTABLE_PATH = chromePath;

const maxAttempts = shouldRetry ? 3 : 1;
let exitCode = 1;

Expand Down
4 changes: 1 addition & 3 deletions tests/tools/extensions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ describe('extension', () => {
);
assert.ok(pageTargetAfter, 'Page should exist after action');
},
{
executablePath: process.env.CHROME_M146_EXECUTABLE_PATH,
},
{},
{
categoryExtensions: true,
} as ParsedArguments,
Expand Down
8 changes: 2 additions & 6 deletions tests/tools/pages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ describe('pages', () => {
);
t.assert.snapshot?.(text);
},
{
executablePath: process.env.CHROME_M146_EXECUTABLE_PATH,
},
{},
{
categoryExtensions: true,
} as ParsedArguments,
Expand Down Expand Up @@ -196,9 +194,7 @@ describe('pages', () => {
);
t.assert.snapshot?.(text);
},
{
executablePath: process.env.CHROME_M146_EXECUTABLE_PATH,
},
{},
{
categoryExtensions: true,
} as ParsedArguments,
Expand Down
Loading