WIP: feat: add tests for finding the api url #1019

Open
konrad wants to merge 1 commits from feature/test-api-finder into main
Owner

Follow-Up for 26213d5e8c

Since the api-finding stuff recently broke, I figured we should have tests for it. I'm not quite sure yet how to properly test this, my best idea is to pass a function that resolves or reject depending on the current url. Open for ideas.

Follow-Up for 26213d5e8c2dd66dc381b2dad8c54c789d515694 Since the api-finding stuff recently broke, I figured we should have tests for it. I'm not quite sure yet how to properly test this, my best idea is to pass a function that resolves or reject depending on the current url. Open for ideas.
konrad added 1 commit 9 months ago
e59fa41600
feat: add tests for finding the api url
Collaborator

I'm not experienced in this, regardless I stumbled recently across testing api end points via service workers that replicate the api 1:1.

E.g. via https://mswjs.io/ (probably there are other solutions, was basically the first hit)

EDIT: also found this: https://github.com/Netflix/pollyjs

I'm not experienced in this, regardless I stumbled recently across testing api end points via service workers that replicate the api 1:1. E.g. via https://mswjs.io/ (probably there are other solutions, was basically the first hit) EDIT: also found this: https://github.com/Netflix/pollyjs
Some checks failed
continuous-integration/drone/pr Build is failing
Required
Details
This pull request is marked as a work in progress.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/frontend#1019
Loading…
There is no content yet.