Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@flacoman91
Copy link
Contributor

@flacoman91 flacoman91 commented Jun 13, 2025

This PR is for general cleanup:

  • Linting and optimizing imports
  • Updating our cypress tests, remove mocks and intercepts.

Waiting and mocking the responses may be faster, but by testing the actual API, we can test the API as well as the actual data.

Removing these API waits is much simpler than generating mock fixtures and listening for URL string matching.
Also, with the introduction of RTK Query, the network requests are cached so we don't need to watch and intercept data as much anymore.

To test
This PR CI frontend checks should pass

you can also do
yarn test to run the unit tests

or run your local rig on localhost:3000
and run yarn cypress run

@flacoman91 flacoman91 force-pushed the remove-cypress-mocks branch from 5f46982 to 500677b Compare June 13, 2025 01:05
updating test

linting, optimize imports

linting
@flacoman91 flacoman91 force-pushed the remove-cypress-mocks branch from 500677b to 3f434e7 Compare June 13, 2025 01:13
@flacoman91 flacoman91 changed the title Update cypress tests Simplify cypress tests, linting code Jun 13, 2025
Copy link
Member

@higs4281 higs4281 left a comment

Choose a reason for hiding this comment

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

Unit tests and cypress tests run for me.
Nice to have an open API to test against.

@flacoman91 flacoman91 added this pull request to the merge queue Jun 13, 2025
Merged via the queue into main with commit 817ab93 Jun 13, 2025
2 checks passed
@flacoman91 flacoman91 deleted the remove-cypress-mocks branch June 13, 2025 02:52
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.

3 participants