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

Closed
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 2021-11-16 21:46:43 +00:00
continuous-integration/drone/pr Build is failing Details
e59fa41600
feat: add tests for finding the api url
Member

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
konrad closed this pull request 2023-10-22 17:38:54 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.