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.

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
decreased by-45.54%
Maintainers
2
Weekly downloads
 
Created
Source

bs-react-test-renderer

Build Status npm dependencies

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;

describe("Component", () => {
  open ExpectJs;

  test("renders", () => {
    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/reasonml-community/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

v3.0.0 (2020-08-28)

  • Upgrade to my latest release tools (@wyze in #19)
  • Upgrade dependencies (@wyze in #18)
  • Migrate to JSX v3 (@rusty-key in #10)
  • Upgrade CI to use Current and LTS Node versions (@wyze in #11)
  • Fixes Bucklescript v7 warnings (@superherointj in #4)

License

MIT © Neil Kistner

FAQs

Package last updated on 29 Aug 2020

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