microlinkhq / microlinkhq/react-json-view

Any example for how to interact with the editor in tests?

Open
#150 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.