Skip to content

Conversation

@ojeytonwilliams
Copy link
Contributor

This function handles creating and mounting React component. It then returns a DOM element with the mounted component, so that tests can inspect it.

Checklist:

In freeCodeCamp/freeCodeCamp#58410 I added it as part of the client, but I think it's better as a helper (it's easier to test and document in this repo).

This function handles creating and mounting React component. It then
returns a DOM element with the mounted component, so that tests can
inspect it.
@ojeytonwilliams ojeytonwilliams requested a review from a team January 28, 2025 16:32
@socket-security
Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] Transitive: environment +27 6.56 MB nicolo-ribaudo
npm/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +84 9.28 MB simenb
npm/[email protected] environment +2 4.53 MB react-bot
npm/[email protected] environment +4 1.68 MB react-bot
npm/[email protected] environment +2 339 kB react-bot

View full report↗︎

@Sembauke Sembauke merged commit 07d4846 into freeCodeCamp:main Jan 31, 2025
4 checks passed
@ojeytonwilliams ojeytonwilliams deleted the feat/react-test-helper branch January 31, 2025 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants