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

[PLAT-7801] Add early check for undefined apiKey #1738

Merged
merged 3 commits into from May 18, 2022

Conversation

gingerbenw
Copy link
Member

Goal

To improve error message shown to end user when the apiKey is undefined/null

Design

We were trying to use the apiKey to create a file store before validating it

Changeset

Added early check to electron/src/client/main.js

Testing

Added unit test for specific test case

@github-actions
Copy link

github-actions bot commented May 17, 2022

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 42.43 kB 12.98 kB
After 42.43 kB 12.98 kB
± No change No change

code coverage diff

Ok File Lines Branches Functions Statements
/home/runner/work/bugsnag-js/bugsnag-js/packages/electron/src/client/main.js 53.13%
(+53.13%)
16.67%
(+16.67%)
50%
(+50%)
51.52%
(+51.52%)

Total:

Lines Branches Functions Statements
85.03%(+0.38%) 73.93%(-0.02%) 84.1%(+0.09%) 84.06%(+0.35%)

Generated by 🚫 dangerJS against 161a124

packages/electron/src/client/main.js Outdated Show resolved Hide resolved
Co-authored-by: Joe Haines <hello@joehaines.co.uk>
@gingerbenw gingerbenw merged commit 7a7815e into next May 18, 2022
@gingerbenw gingerbenw mentioned this pull request May 18, 2022
@gingerbenw gingerbenw deleted the plat-7801-electron-undefined-api-key branch August 5, 2022 12:38
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.

None yet

2 participants