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

feat: add tests for serve functionality #116

Merged
merged 8 commits into from
Sep 20, 2022
Merged

feat: add tests for serve functionality #116

merged 8 commits into from
Sep 20, 2022

Conversation

Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Sep 14, 2022

  • chore: add test for serve
  • chore: remove unneeded await

Closes https://github.com/netlify/pod-compute/issues/103.

@Skn0tt Skn0tt requested a review from a team September 14, 2022 00:32
@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Sep 14, 2022
@Skn0tt Skn0tt changed the title test bundler servinig chore: add tests serve functionality Sep 14, 2022
EwanValentine
EwanValentine previously approved these changes Sep 14, 2022
@EwanValentine
Copy link
Contributor

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
Copy link
Member

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?

Copy link
Member Author

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

@Skn0tt
Copy link
Member Author

Skn0tt commented Sep 14, 2022

Looks good, looks like the Windows tests are failing in the most vague way possible, though

I think that's unrelated to this PR, see https://netlify.slack.com/archives/C0359548J07/p1663067013856019

eduardoboucas
eduardoboucas previously approved these changes Sep 14, 2022
Copy link
Member

@eduardoboucas eduardoboucas left a 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.

@eduardoboucas eduardoboucas changed the title chore: add tests serve functionality chore: add tests for serve functionality Sep 14, 2022
Copy link
Member

@eduardoboucas eduardoboucas 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 think you should change this to feat: and update the title now that you're changing runtime code, though.

@Skn0tt Skn0tt changed the title chore: add tests for serve functionality feat: add tests for serve functionality Sep 20, 2022
@Skn0tt Skn0tt merged commit ed001bc into main Sep 20, 2022
@Skn0tt Skn0tt deleted the test-bundler-servinig branch September 20, 2022 12:18
@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Sep 20, 2022
Skn0tt added a commit to netlify/build that referenced this pull request Apr 23, 2024
* chore: add test for `serve`

* chore: remove unneeded `await`

* chore: try 0.0.0.0

* refactor: use getPort

* refactor: move files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants