You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any documentation on what's needed from a dev environment? My situation is that I've cloned the repo in WSL and tried to run npm run ci-tests. I immediately had a bunch of failing tests because several *.localhost domains don't resolve, like this:
FetchError: request to http://another-subdomain.localhost:8000/ failed, reason: getaddrinfo ENOTFOUND another-subdomain.localhost
So I added whatever I could find in the tests to my /etc/hosts:
This is a good point @rageshkrishna! To be honest, I'm not sure - I don't use Windows much myself. The tests do run with very minimal setup on a fresh Linux box, e.g. they pass in CI with no special configuration at all: https://github.com/httptoolkit/mockttp/blob/main/.github/workflows/ci.yml. I believe that includes GitHub's default setup (e.g. a normal Chrome install, which is sufficient for Karma to detect it - solving your 2nd issue) but nothing more.
I wasn't aware that the *.localhost domains wouldn't resolve within WSL, I'm a little surprised as I thought that was fairly standard. Do you know if that's a WSL issue, or Windows in general? We could probably work around this, or at least detect it and automatically instruct users how to fix it (and probably reduce the number of hosts used en route - I doubt we need all those different distinct names).
Is there any documentation on what's needed from a dev environment? My situation is that I've cloned the repo in WSL and tried to run
npm run ci-tests
. I immediately had a bunch of failing tests because several*.localhost
domains don't resolve, like this:So I added whatever I could find in the tests to my
/etc/hosts
:which got me to 540 passing tests and 8 pending. I now see this:
So I was wondering if there's a doc or checklist of some sort that could help me get up and running. Thanks!
The text was updated successfully, but these errors were encountered: