Skip to content

Initial setup around GitHub API mock server#1629

Merged
charisk merged 2 commits intomainfrom
charisk/mock-server-setup
Oct 19, 2022
Merged

Initial setup around GitHub API mock server#1629
charisk merged 2 commits intomainfrom
charisk/mock-server-setup

Conversation

@charisk
Copy link
Copy Markdown
Contributor

@charisk charisk commented Oct 19, 2022

Adds the msw package and some initial structure.

Checklist

N/A - internal only.

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@charisk charisk added the secexp label Oct 19, 2022
@charisk charisk requested a review from a team October 19, 2022 10:56
@charisk charisk requested a review from a team as a code owner October 19, 2022 10:56
@@ -0,0 +1,19 @@
export function startServer(): void {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm fine with merging it like this, but do you think it would make sense to create a class for this instead so we can more easily track state (and potentially test it)? For example, it would be really useful to keep track of whether the server is listening.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah might as well do it now (I thought it'll likely be a class but didn't want to do it before we had to)!

@charisk charisk enabled auto-merge (squash) October 19, 2022 11:23
@charisk charisk merged commit 4245206 into main Oct 19, 2022
@charisk charisk deleted the charisk/mock-server-setup branch October 19, 2022 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants