Skip to content

Created a mock test suite for most of my tests and actual api tests for the navigation suite#255

Merged
MelanieTheLion merged 7 commits into
mainfrom
feature/vc-testing
Jun 23, 2026
Merged

Created a mock test suite for most of my tests and actual api tests for the navigation suite#255
MelanieTheLion merged 7 commits into
mainfrom
feature/vc-testing

Conversation

@MelanieTheLion

@MelanieTheLion MelanieTheLion commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Improved E2E testing strategy:
For the bulk of the E2E tests I don't care what kind of response the API gives me. I am not testing my API's. I am testing my UI. So for most of my E2E tests, I am using a mocked response of the requested url. This way, when for instance the amount of Virtual Collections changes, I am not dependent on the content and my tests will not fail.

This way my tests will only fail if I break my own UI or functionality.

Whether or not my APIs give me the response I want is a different kind of test.

Note:
For the navigation E2E tests, I am actually using the actual API responses still, to keep a bit of dependency on APIs.

image

@sonarqubecloud

Copy link
Copy Markdown

# underscore is a fixed dependency of jsonpath and cannot be upgraded by us Jun-12-2026
CVE-2026-27601

# form-data is a dependency of two other packages and it cannot be automatically updated Jun-18-2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes it is possible to force with an explicit override, have you tried that?

https://pnpm.io/settings#overrides

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am still on NPM with this application because I ran into issues I don't want to fix in old code. But I know that npm also allows overrides. My larger goal is to get rid of as many dependencies I can :) A further user story tackles my dependencies and pnpm migration, and I'll take the overrides with me then.

@MelanieTheLion MelanieTheLion merged commit f50cda0 into main Jun 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants