New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

wrap-context

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wrap-context

React Context Provider for tests (TypeScript)

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

React Context Provider

codecov Build Status

Sample wrapper for providing context in tests. Includes Typescript definitions and tests.

If you want to use this package, consider usage of enzyme

Usage

See in tests

import {wrapContext} from 'wrap-context';
const ReactContextProvider = wrapContext(YourComponent);

export default <ReactContextProvider context={{
    text: "Context your component will receive"
}}/>

Installing

Using NPM:

npm i --save-dev wrap-context

License

MIT

Keywords

react

FAQs

Package last updated on 14 Aug 2017

Did you know?

Socket

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.

Install

Related posts