tests - do not break codeAutomationExit API (refs microsoft/vscode-test-web#82) (#181682)

This commit is contained in:
Benjamin Pasero
2023-05-08 12:36:55 +02:00
committed by GitHub
parent 60fe2d5970
commit 3f7bc08865
3 changed files with 3 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ async function runTestsInBrowser(browserType: BrowserType, endpoint: url.UrlWith
console[type](...args);
});
await page.exposeFunction('codeAutomationExit', async (logs: Array<{ readonly relativePath: string; readonly contents: string }>, code: number) => {
await page.exposeFunction('codeAutomationExit', async (code: number, logs: Array<{ readonly relativePath: string; readonly contents: string }>) => {
try {
for (const log of logs) {
const absoluteLogsPath = path.join(logsPath, log.relativePath);