Skip to content

Fixes #38673 - dev docs - ui tests #10654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MariaAga
Copy link
Member

No description provided.

Some mocked files are already in `\\__mocks__` folder, but dont define all the functions from the original file, so they will show up as undefined.
- Tests files should be named like `*.test.js`, and should be in the same folder as the component, or in the `\\__tests__` folder.
- Tests can mock the API in a few ways:
* By adding the mock data to the store using `redux-mock-store`
Copy link
Member

Choose a reason for hiding this comment

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

redux-mox-store is already deprecated. Are we sure we want to document an already deprecated technology? They point to redux documentation for more info on how to test redux enabled components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants