GitShow/kentcdodds/react-test-context-provider
kentcdodds

react-test-context-provider

A function that allows you to specify context to pass to a child component (intended for testing only).

by kentcdodds
Star on GitHubForkWebsitenpm

JavaScript

48 stars6 forks2 contributorsQuiet · 5y agoSince 2016MIT

Meet the team

See all 2 on GitHub →
alanbsmith
alanbsmith1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
yugandhar-pathi
Is this package still valid for useContext?ClosedIssue

Hi Kent, Is this package still valid ? Is there a way to merge this functionality to @testing-library/react ? Or is it already done?

yugandhar-pathi · 7y ago
alanbsmith
updates React.createClass and PropTypes syntax to remove deprecation warningsMergedPR

Hey, Kent! 👋 I was using this lib (which works great, thanks!), and I saw some deprecation warnings for using and : So, I thought I'd submit a PR to update the syntax. 😄 I tried to change as little as possible. Let me know if you'd like me to update anything else though. I didn't bump the version, as I thought you might want to do that. Cheers and thanks again for the lib!

alanbsmith · 8y ago
pionl
Updated for React version 15.5ClosedIssue

Hi, could you update the package for newer react?

pionl · 8y ago
Structured data for AI agents

Repository: kentcdodds/react-test-context-provider. Description: A function that allows you to specify context to pass to a child component (intended for testing only). Stars: 48, Forks: 6. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Homepage: https://npmjs.com/package/react-test-context-provider Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 42%. Top contributors: alanbsmith.

·@ofershap

Replace github.com with gitshow.dev