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: added serverOptions to test helper.js #552

Merged
merged 2 commits into from
Sep 27, 2022

Conversation

mccare
Copy link
Contributor

@mccare mccare commented Sep 17, 2022

This addresses #546. I've decided to add a serverOptions parameter instead of using the pluginOptions.
Added an example on how to enable logging during tap testing.

Checklist

…ing during testing

During testing, the log output through stdout is consumed by tap and supressed. To enable logging during testing, the logger needs to be configured to log to stderr. Specifying serverOptions allows to configure the server in the test helper.js
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mccare
Copy link
Contributor Author

mccare commented Sep 27, 2022

If there are issues with the changes, please let me know and I'll address them.

@Eomm Eomm merged commit e23d2d2 into fastify:master Sep 27, 2022
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.

3 participants