-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: add tests for serve
functionality
#116
Conversation
Looks good, looks like the Windows tests are failing in the most vague way possible, though |
test/serving.ts
Outdated
const fixturesDir = resolve(dirname, '..', 'fixtures') | ||
|
||
test.serial('bundler serving functionality', async (t) => { | ||
const PORT_THATS_HOPEFULLY_FREE = 5832 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we call this port
?
Also, should we use something like https://www.npmjs.com/package/get-port rather than hardcoding a port and hoping that it's free?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call, yeah :D done in 709cc70
I think that's unrelated to this PR, see https://netlify.slack.com/archives/C0359548J07/p1663067013856019 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one! You might need to move the test file to test/node/
if #122 is merged first.
serve
functionalityserve
functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I think you should change this to feat:
and update the title now that you're changing runtime code, though.
serve
functionalityserve
functionality
* chore: add test for `serve` * chore: remove unneeded `await` * chore: try 0.0.0.0 * refactor: use getPort * refactor: move files
serve
await
Closes https://github.com/netlify/pod-compute/issues/103.