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

.wp-env.json schema: Add testsPort field #68220

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions schemas/json/wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"default": []
},
"port": {
"description": "The primary port number to use for the installation. You'll access the instance through the port: 'http://localhost:8888'.",
"description": "The primary port number to use for the installation. You'll access the instance through the port: http://localhost:8888",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a small improvement that should make the code editor suggest the correct URL to link to.

Before

image

After

image

"type": "integer",
"default": 8888
},
Expand Down Expand Up @@ -114,6 +114,11 @@
}
},
"default": {}
},
"testsPort": {
"description": "The port number for the test site. You'll access the instance through the port: http://localhost:8889",
"type": "integer",
"default": 8889
}
}
},
Expand All @@ -125,7 +130,7 @@
"$ref": "#/definitions/wpEnvPropertyNames"
},
{
"enum": [ "$schema", "env" ]
"enum": [ "$schema", "env", "testsPort" ]
}
]
}
Expand Down
Loading