aweary / aweary/react-perimeter
Add test suite
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
It's probably hard to test the actual core feature of `react-perimeter` , but there are a few things we can definitely test:
* correctly exports the React component
* renders children
* attaches `ref` correctly with render callbacks
* registers event listeners on mount
* removes event listeners on unmount
* removes event listeners after `onBreach` is called if `once` is `true`
* more stuff
I'd like to use `jest` and `enzyme` for this.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the react-perimeter React component and checking whether a test setup already exists. Use the listed export, rendering, ref, listener, unmount, and once/onBreach behaviors as test cases; done means the suite covers these behaviors and passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100