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: show correct url in output status #3013

Merged
merged 8 commits into from Feb 15, 2021
Merged

fix: show correct url in output status #3013

merged 8 commits into from Feb 15, 2021

Conversation

snitin315
Copy link
Member

@snitin315 snitin315 commented Feb 14, 2021

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Yes

Motivation / Use-Case

#2992 (comment)

Screenshot at 2021-02-14 12-43-58

Breaking Changes

None.

Additional Info

No

@snitin315 snitin315 changed the title fix: normalize options.host fix: undefined options.host Feb 14, 2021
Copy link
Member

@rishabh3112 rishabh3112 left a comment

Choose a reason for hiding this comment

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

Needs update in snapshots as well.

lib/utils/normalizeOptions.js Outdated Show resolved Hide resolved
@snitin315 snitin315 marked this pull request as draft February 14, 2021 05:21
@snitin315 snitin315 force-pushed the fix/host branch 2 times, most recently from 255a8fd to 0cc6b88 Compare February 14, 2021 07:06
@snitin315 snitin315 changed the title fix: undefined options.host fix: undefined hostname Feb 14, 2021
@snitin315 snitin315 changed the title fix: undefined hostname fix: show correct url in output status Feb 14, 2021
@codecov
Copy link

codecov bot commented Feb 14, 2021

Codecov Report

Merging #3013 (de220e2) into master (3945c44) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3013      +/-   ##
==========================================
- Coverage   92.40%   92.32%   -0.08%     
==========================================
  Files          37       37              
  Lines        1264     1264              
  Branches      328      328              
==========================================
- Hits         1168     1167       -1     
- Misses         91       92       +1     
  Partials        5        5              
Impacted Files Coverage Δ
lib/Server.js 94.66% <100.00%> (-0.23%) ⬇️

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 3945c44...f8f6bef. Read the comment docs.

@snitin315 snitin315 marked this pull request as ready for review February 14, 2021 14:52
@alexander-akait
Copy link
Member

Please fix lint problem

@snitin315
Copy link
Member Author

I shouldn't be able to commit if there is a lint issue until I bypass with --no-verify 😕 .

@snitin315
Copy link
Member Author

I will fix ci tomorrow.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Can you test locally? Using a lot of CI reduce available machines for other projects

@snitin315
Copy link
Member Author

Sorry about that, sometimes it passes locally but fails on CI. I will keep this in my mind and will use my fork's CI in the future in such a case.

This one should be good now.

lib/Server.js Outdated Show resolved Hide resolved
@alexander-akait alexander-akait merged commit 06b3d91 into master Feb 15, 2021
@alexander-akait alexander-akait deleted the fix/host branch February 15, 2021 18:21
@alexander-akait
Copy link
Member

Thanks

Comment on lines -9 to -17
// skip if webpack-dev-server is not linked
let runCLITest = describe;
let basePath;

try {
basePath = path.join(require.resolve('webpack-dev-server'), '..', '..');
} catch {
runCLITest = describe.skip;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This'd make tests fail where webpack-dev-server is not npm linked.

Copy link
Member Author

Choose a reason for hiding this comment

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

We link it on CI before running tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

But for developers testing locally, it may be a hurdle.

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

4 participants