enzyme - JavaScript Testing utilities for React

  •        74

Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output.Enzyme's API is meant to be intuitive and flexible by mimicking jQuery's API for DOM manipulation and traversal.

http://airbnb.io/enzyme/
https://github.com/airbnb/enzyme

Tags
Implementation
License
Platform

   




Related Projects

chai - BDD / TDD assertion framework for node

  •    Javascript

Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework. For more information or to download plugins, view the documentation.

ava - Futuristic JavaScript test runner

  •    Javascript

Even though JavaScript is single-threaded, IO in Node.js can happen in parallel due to its async nature. AVA takes advantage of this and runs your tests concurrently, which is especially beneficial for IO heavy tests. In addition, test files are run in parallel as separate processes, giving you even better performance and an isolated environment for each test file. Switching from Mocha to AVA in Pageres brought the test time down from 31 to 11 seconds. Having tests run concurrently forces you to write atomic tests, meaning tests don't depend on global state or the state of other tests, which is a great thing!

chai-jquery - jQuery assertions for chai

  •    Javascript

chai-jquery is an extension to the chai assertion library that provides a set of jQuery-specific assertions. Note that jquery.js and chai.js can be inserted one before another (order does not matter here).


konacha - Test your Rails application's JavaScript with the mocha test framework and chai assertion library

  •    Ruby

Konacha ([koh-NAH-cha], a type of green tea) is a Rails engine that allows you to test your JavaScript with the Mocha test framework and chai assertion library. It is similar to Jasmine and Evergreen, but does not attempt to be framework agnostic. By sticking with Rails, Konacha can take full advantage of features such as the asset pipeline and engines.

jest-extended - Additional Jest matchers 🃏💪

  •    Javascript

Jest is an amazing test runner and has some awesome assertion APIs built in by default. However there are times when having more specific matchers (assertions) would be far more convenient. If you've come here to help contribute - Thanks! Take a look at the contributing docs as a way of getting started.

js-must - An assertion library for JavaScript and Node

  •    Javascript

Must.js is a testing and assertion library for JavaScript and Node.js with a friendly BDD syntax (awesome.must.be.true()). It ships with many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good and well testsed stuff. For those new to testing JavaScript on Node.js, you'll also need a test framework (also called a test-runner or a harness) to run your tests. One such tool is Mocha.

quicktest - Quick helpers for testing Go applications

  •    Go

Package quicktest provides a collection of Go helpers for writing tests. An assertion looks like this, where qt.Equals could be replaced by any available checker. If the assertion fails, the underlying Fatal method is called to describe the error and abort the test.

teaspoon - A jQuery like API for testing React elements and rendered components.

  •    Javascript

Just the right amount of abstraction for writing clear, and concise React component tests. Teaspoon is test environment agnostic, so you can (and should) bring your own test runner and frameworks. If you plan on doing normal component rendering (not just shallow rendering) you will also need a DOM environment, whether that's a browser, headless browser, or jsdom.

react-fake-props - 🔮 Simple utility to magically generate fake props for your React tests

  •    Javascript

react-fake-props parses your Component prop types using react-docgen and generates fake props. Supports Flow and PropTypes. Works great with Jest snapshots and Enzyme.To include optional props, pass { optional: true }.

Verify - Verify is a snapshot tool that simplifies the assertion of complex data models and documents

  •    CSharp

Verify is a snapshot tool that simplifies the assertion of complex data models and documents. Verify is called on the test result during the assertion phase. It serializes that result and stores it in a file that matches the test name. On the next test execution, the result is again serialized and compared to the existing file. The test will fail if the two snapshots do not match: either the change is unexpected, or the reference snapshot needs to be updated to the new result.

sinon-chai - Extends Chai with assertions for the Sinon.JS mocking framework.

  •    Javascript

Sinon–Chai provides a set of custom assertions for using the Sinon.JS spy, stub, and mocking framework with the Chai assertion library. You get all the benefits of Chai with all the powerful tools of Sinon.JS. All of your favorite Sinon.JS assertions made their way into Sinon–Chai. We show the should syntax here; the expect equivalent is also available.

react-testing-mocha-jsdom - Unit testing React Components with Mocha + jsdom

  •    Javascript

This is Part 2 of the series "Modular Isomorphic React JS applications". See Part 1 and Part 3 for more. Unit testing React is traditionally done using Jest which dictates the use of the Jasmine testing framework, and enforces mocking of all require calls. For such an unopinionated rendering engine, this is a very opinionated setup, resulting in issues such as overly-verbose unmocking of requires, and being tied into Jasmine's limited framework.

react-starterify - A minimal React JS application starter kit

  •    Javascript

A minimal React JS application starter kit. React Starterify aims to give you a good starting point for your projects. If you're looking for a minimal ES6 (ES2015) React JS starter with nice shallow rendering test examples, this is probably for you.

concurrentunit - Toolkit for testing multi-threaded and asynchronous applications

  •    Java

A simple, zero-dependency toolkit for testing multi-threaded code. Supports Java 1.6+.ConcurrentUnit was created to help developers test multi-threaded or asynchronous code. It allows you to perform assertions and wait for operations in any thread, with failures being properly reported back to the main test thread. If an assertion fails, your test fails, regardless of which thread the assertion came from.

Fluent Assertions

  •    

Fluent interface for writing .NET unit test assertions with more clarity than the traditional assertion syntax such as offered by MSTest, NUnit or XUnit.

MyTested.WebApi - Fluent testing framework for ASP.NET Web API 2.

  •    CSharp

MyTested.WebApi is a unit testing library providing easy fluent interface to test the ASP.NET Web API 2 framework. It is testing framework agnostic, so you can combine it with a test runner of your choice (e.g. NUnit, xUnit, etc.). Inspired by ChaiJS. Please see the documentation for full list of available features. Everything listed in the documentation is 100% covered by more than 800 unit tests and should work correctly. Almost all items in the issues page are expected future features and enhancements.

Jasmine-Matchers - A huge library of test matchers for Jasmine and Jest.

  •    Javascript

A huge library of test matchers for a range of common use-cases, compatible with all versions of Jasmine and Jest. Custom Matchers make tests easier to read and produce relevant and useful messages when they fail.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.