Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: error handling on list-files #441

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

mxschmitt
Copy link
Member

src/playwrightTest.ts Outdated Show resolved Hide resolved
@@ -109,8 +109,12 @@ export class PlaywrightTest {
this._log(`${escapeRegex(path.relative(config.workspaceFolder, configFolder))}> playwright list-files -c ${configFile}`);
}
const output = await this._runNode(allArgs, configFolder);
const result = JSON.parse(output) as ConfigListFilesReport;
return result;
const result = JSON.parse(output) as Partial<ConfigListFilesReport>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: ConfigListFilesReport | { error }

@mxschmitt mxschmitt merged commit f92ad70 into microsoft:main Mar 15, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants