microlinkhq / microlinkhq/react-json-view
Any example for how to interact with the editor in tests?
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 417
- Forks
- 68
- Avg merge
- 4h 22m
- Merged PRs (30d)
- 8
Description
We have a component that includes the ReactJsonView and provides some onEdit, onAdd, and onDelete callbacks. Do you have an example of how to test this component, especially if it uses something like react-testing-library to interact with the component like a user?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ReactJsonView component and its onEdit, onAdd, and onDelete callbacks. Review how react-testing-library can interact with the component like a user, then provide a runnable testing example that triggers these callbacks and verifies their results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- testing
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100