You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a local setup where our service runs on https://localhost/. I have written test cases that make REST API calls to this service.
These tests fail when executed in a Node.js environment, but they pass when run in a browser environment. If I use a real endpoint not localhost both node and browser test cases are passing.
vitest.browser.shared.config.ts
Describe the bug
I have a local setup where our service runs on https://localhost/. I have written test cases that make REST API calls to this service.
These tests fail when executed in a Node.js environment, but they pass when run in a browser environment. If I use a real endpoint not localhost both node and browser test cases are passing.
Client configuration:
API call:
The error I get if I use
dev-tool run test:vitest
The same test with the same setup passes if I use
dev-tool run test:vitest --browser
To Reproduce
Steps to reproduce the behavior:
dev-tool run test:vitest
.Expected behavior
The test cases should have the same behavior on both node and browser environments
Screenshots
N/A
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: