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

[FEATURE] api-client split unit tests for browser and node environment in some relevant differences #1324

Open
mkucmus opened this issue Oct 2, 2024 · 0 comments
Labels
api-client enhancement New feature or request

Comments

@mkucmus
Copy link
Collaborator

mkucmus commented Oct 2, 2024

Description

createAPIClient.test.ts is an example when jsdom is being used - to emulate the browser context.
in that specific case we have to deal with an api instance that can be used in node.js environment and in the browser, then:

  • errors/rejections can vary
  • conditional statements need to take care of it

Use Case

provide bullet proof tests for both envs

Proposed Solution

No response

Alternatives Considered

No response

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-client enhancement New feature or request
Projects
Status: Developer Backlog
Development

No branches or pull requests

1 participant