Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
test-drive-react
Advanced tools
Opinionated library for Test-Driven Development of React components, extending Test Drive and providing its timing functions, DOM parts lookup, presence/absence matchers and event triggering layout matchers.
In addition, it reexports React simulate testing utility and integrated renderer
ClientRenderer
provides a utility for rendering React components in consistent
and convenient way. It creates the holding container, if necessary, with uniform positioning,
automatically binds to it all important Test Drive helper functions, and proivides clean-up
mechanism.
For a typical use, see the end-to-end test.
The renderer is created simply by invoking new ClientRenderer()
.
render(element, container?)
Renders the element
React component. If container
is not specified, a new one is created.
Returns RenderingContext
with following fields:
container
result
- rendered root component (either DOM Element or React component instance)select
- DOM selector
pre-bound to the containerwaitForDom
- DOM timing function
pre-bound to the containercleanup()
Unmounts the root component and removes any container that had been created by the renderer.
FAQs
Opinionated library for Test-Driven Development of React Components.
The npm package test-drive-react receives a total of 154 weekly downloads. As such, test-drive-react popularity was classified as not popular.
We found that test-drive-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.