Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bs-react-test-renderer

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-react-test-renderer

BuckleScript bindings for react-test-renderer.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36
increased by12.5%
Maintainers
2
Weekly downloads
 
Created
Source

bs-react-test-renderer

Build Status npm dependencies devDependencies

BuckleScript bindings for react-test-renderer.

Installation

$ yarn add --dev bs-react-test-renderer

# or..

$ npm install --save-dev bs-react-test-renderer

Usage

Add to bsconfig.json
{
  "bs-dev-dependencies": [
    "bs-react-test-renderer"
  ]
}
With bs-jest
// Component_test.re

open Jest;
open ExpectJs;

let _ =

describe "Component" (fun _ => {
  test "renders" (fun _ => {
    let component = ReactShallowRenderer.renderWithRenderer <Component />;

    expect (Js.Undefined.return component) |> toBeDefined;
  });
});

Examples

See src/__tests__ for some examples.

For examples with Snapshot testing with bs-jest, see reason-calculator.

Development

$ git clone https://github.com/BuckleTypes/bs-react-test-renderer.git
$ cd bs-react-test-renderer
$ yarn # or `npm install`

Build

$ yarn build

Test

$ yarn test

Change Log

Full Change Log

v1.0.1 (2017-07-06)

  • [35a6736811] - Update to reason-react v0.2.1 (Cheng Lou)

License

MIT © Neil Kistner

FAQs

Package last updated on 06 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc