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: In sending events in cli-exec #1569

Merged
merged 2 commits into from
Apr 10, 2024
Merged

🐛 fix: In sending events in cli-exec #1569

merged 2 commits into from
Apr 10, 2024

Conversation

prklm10
Copy link
Contributor

@prklm10 prklm10 commented Apr 10, 2024

🐛 fix: In sending events in cli-exec
Github Issue -> #1560
Details:-

  • When percy is disabled ther is no percy object created so percy.client is throwing us an error.

@prklm10 prklm10 requested a review from a team as a code owner April 10, 2024 05:34
@prklm10 prklm10 added the 🐛 bug Something isn't working label Apr 10, 2024
@@ -173,6 +173,25 @@ describe('percy exec', () => {
});
});

it('tests process.stderr percy is disabled', async () => {
delete process.env.PERCY_CLIENT_ERROR_LOGS;
process.env.PERCY_ENABLE = '0';
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not reset at the end of the test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a after each block that deletes this delete process.env.PERCY_ENABLE;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants