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

refactor(upgrade): add unit tests for lsp upgrade check #21244

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

dsherret
Copy link
Member

I was investigating the flaky repl startups in #21187 and thinking it might be related to the upgrade check, but not sure. Anyway, I wanted to modify the upgrade code, but we didn't have any tests for it, so this is a refactor to get the upgrade code unit testable. After this, I'll open a separate PR sometime to add integration tests that use the test server (I realize I'm somewhat doing this backwards from recommended practice--should do integration tests first--but I've done some manually testing), then I'll change the behaviour.

Copy link
Collaborator

@nayeemrmn nayeemrmn left a comment

Choose a reason for hiding this comment

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

LGTM, I checked for regressions in upgrade prompts for both canary and release

Copy link
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

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

LGTM

@dsherret dsherret merged commit f46802c into denoland:main Nov 17, 2023
13 checks passed
@dsherret dsherret deleted the refactor_more_tests_upgrade branch November 17, 2023 21:40
zifeo pushed a commit to metatypedev/deno that referenced this pull request Nov 22, 2023
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

3 participants