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
enhancement 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 added this to the v0.4.0 milestone May 10, 2024
@diego-aquino diego-aquino added the enhancement 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
@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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant