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(v2): config validation fixes + add tests for config validation #3142

Merged
merged 3 commits into from
Jul 29, 2020

Conversation

teikjun
Copy link
Contributor

@teikjun teikjun commented Jul 28, 2020

Motivation

This PR adds tests for config validation, especially for the validation bugs that were fixed in PR #3120. This helps to make the Joi validation less prone to errors.

I've also allowed empty string for some fields so that the validation is not unnecessarily strict.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Automated tests

Related PRs

This is related to the validation bugs in #3120.

@teikjun teikjun requested a review from yangshun as a code owner July 28, 2020 12:15
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jul 28, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 0f93438

https://deploy-preview-3142--docusaurus-2.netlify.app

@slorber slorber merged commit e7ec93b into facebook:master Jul 29, 2020
@slorber
Copy link
Collaborator

slorber commented Jul 29, 2020

looks nice, thanks

@slorber slorber changed the title test(v2): add tests for config validation fix(v2): config validation fixes + add tests for config validation Jul 29, 2020
@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants