Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add tests for node/settings.ts #4717

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

Merged
repo-ranger merged 1 commit into main from jsjoeio-test-settings
Jan 10, 2022
Merged

Conversation

Copy link
Contributor

@jsjoeio jsjoeio commented Jan 10, 2022
edited
Loading

This PR adds additional tests for node/settings.ts to ensure we log warnings when expected.

Context

The SettingsProvider provides the application with access to the settings for code-server. This is then added to all routes under req.settings so they can easily access it. We're adding tests to ensure that our logger does indeed log warnings when something goes wrong.

Screenshots

Before

image

After

image

Fixes N/A
#TestingMondays

@jsjoeio jsjoeio added the testing Anything related to testing label Jan 10, 2022
@jsjoeio jsjoeio added this to the 4.0.2 milestone Jan 10, 2022
@jsjoeio jsjoeio self-assigned this Jan 10, 2022
Copy link

codecov bot commented Jan 10, 2022
edited
Loading

Codecov Report

Merging #4717 (7000239) into main (33c5097) will increase coverage by 0.12%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@
## main #4717 +/- ##
==========================================
+ Coverage 69.10% 69.23% +0.12% 
==========================================
 Files 29 29 
 Lines 1638 1638 
 Branches 341 341 
==========================================
+ Hits 1132 1134 +2 
+ Misses 430 428 -2 
 Partials 76 76 
Impacted Files Coverage Δ
src/node/settings.ts 100.00% <0.00%> (+11.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33c5097...7000239. Read the comment docs.

@jsjoeio jsjoeio temporarily deployed to CI January 10, 2022 19:48 Inactive
@jsjoeio jsjoeio marked this pull request as ready for review January 10, 2022 19:56
@jsjoeio jsjoeio requested a review from a team January 10, 2022 19:56
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Looks great! I only have architectural comments.

jsjoeio reacted with thumbs up emoji
Copy link

github-actions bot commented Jan 10, 2022
edited
Loading

✨ Coder.com for PR #4717 deployed! It will be updated on every commit.

@jsjoeio jsjoeio temporarily deployed to CI January 10, 2022 20:19 Inactive
@repo-ranger repo-ranger bot merged commit 70c91c8 into main Jan 10, 2022
@repo-ranger repo-ranger bot deleted the jsjoeio-test-settings branch January 10, 2022 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@code-asher code-asher code-asher approved these changes

Labels
testing Anything related to testing
Projects
None yet
Milestone
4.0.2
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /