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: Many improvements #22

Merged
merged 7 commits into from
Feb 27, 2018
Merged

fix: Many improvements #22

merged 7 commits into from
Feb 27, 2018

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Feb 26, 2018

Changes

@timfish timfish requested a review from HazAT February 26, 2018 16:31
@timfish timfish changed the title fix: decodeURI required to normalize file:https:// URLs correctly fix: Many improvements Feb 26, 2018
if (process.env['E2E_USERDATA_DIRECTORY']) {
app.setPath('userData', process.env['E2E_USERDATA_DIRECTORY']);
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If the app is running e2e tests, we have to change userData directory very early, certainly before Sentry is started

});

after(() => {
afterEach(async () => {
if (app && app.isRunning()) {
return app.stop();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ideally, every test should run in its own fresh instance of the app


expect(normalizeUrl('file:https:///C:/Program%20Files/My%20App/resources/app.asar/a/index.html', base))
.to.equal('app:https://a/index.html');
});
Copy link
Collaborator Author

@timfish timfish Feb 26, 2018

Choose a reason for hiding this comment

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

Still need to check this all on macOS and Linux.

Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

💯

@timfish timfish merged commit 62a70df into getsentry:master Feb 27, 2018
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