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: don't add error snippets on screenshot error #961

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

KuznetsovRoman
Copy link
Member

No description provided.

@@ -14,7 +14,7 @@ const stackFrameLocationResolver = async (stackFrame: SufficientStackFrame): Pro
};

export const extendWithCodeSnippet = async (err: WithSnippetError): Promise<WithSnippetError> => {
if (!err) {
if (!err || shouldNotAddCodeSnippet(err)) {
Copy link
Member

Choose a reason for hiding this comment

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

we can pass error to the shouldNotAddCodeSnippet function and then check all cases inside of the function

@KuznetsovRoman KuznetsovRoman force-pushed the TESTPLANE-107.snippet_scr branch from 7b300e0 to 82b2546 Compare June 27, 2024 14:11
@KuznetsovRoman KuznetsovRoman force-pushed the TESTPLANE-107.snippet_scr branch from 82b2546 to a5d7842 Compare June 27, 2024 14:14
@KuznetsovRoman KuznetsovRoman merged commit f9239c9 into master Jun 27, 2024
2 checks passed
@KuznetsovRoman KuznetsovRoman deleted the TESTPLANE-107.snippet_scr branch June 27, 2024 14:16
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