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

Provide server exports #130

Closed
1 task
diego-aquino opened this issue May 10, 2024 · 0 comments · Fixed by #179
Closed
1 task

Provide server exports #130

diego-aquino opened this issue May 10, 2024 · 0 comments · Fixed by #179
Assignees
Labels
feature New feature or request
Milestone

Comments

@diego-aquino
Copy link
Member

diego-aquino commented May 10, 2024

  • Create server export zimic/server and factory createServer to not expose the Server class directly
@diego-aquino diego-aquino converted this from a draft issue May 10, 2024
@diego-aquino diego-aquino added this to the v0.4.0 milestone May 10, 2024
@diego-aquino diego-aquino added the feature New feature or request label May 10, 2024
@diego-aquino diego-aquino self-assigned this May 10, 2024
@diego-aquino diego-aquino modified the milestones: v0.4.0, v0.8.0 May 11, 2024
@github-project-automation github-project-automation bot moved this to To do in Zimic May 25, 2024
@diego-aquino diego-aquino modified the milestones: v0.8.0, v0.5.2 May 26, 2024
diego-aquino added a commit that referenced this issue May 26, 2024
### Features
- [#zimic] Added the module `zimic/server` to export server resources
and allow programmatic management. The exported resources are:
  - `createInterceptorServer`
  - `InterceptorServer`
  - `InterceptorServerOptions`
  - `NotStartedInterceptorServerError`
  - `runCommand`
  - `CommandError`
  - `DEFAULT_ACCESS_CONTROL_HEADERS`
  - `DEFAULT_PREFLIGHT_STATUS_CODE`

### Refactoring
- [examples] Simplified the examples using remote interceptors. Now that
the function `runCommand` is exported from `zimic/server`, we can create
a load script to apply the mocks before starting the applications.
- [#zimic] Removed the prefix `[zimic]` from errors because it is not
necessary.

### Documentation
- [examples] Improved the documentation of some examples.

Closes #130.
@github-project-automation github-project-automation bot moved this from To do to Done in Zimic May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant