0.1.4 • Published 9 years ago

turris-test-helpers v0.1.4

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

Turris.js test environment helpers

Provides a simple way to create an environment for testing React.js components writter with ES6 without browser.

Includes things

  • jsdom with localStorage polyfill for all your DOM needs
  • React and TestUtils (exposed via mocha context)
  • Container for rendering your component that is create before each test and disposed afterwards (exposed via mocha context)
  • Should.js for your assertions (exposed as default module export)

Installation

Package can be installed using NPM:
npm install turris-test-helpers

Usage

It is recommended to import this file in the beginning of your test, e.g.:
import should from 'turris-test-helpers'

License

MIT

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago