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

tessereact

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tessereact

Presentational snapshot testing for React components.

  • 0.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by800%
Maintainers
2
Weekly downloads
 
Created
Source

Tessereact

Presentational snapshot testing for React components.

Tessereact is Testshot fork which supports CSS snapshots and screenshot diffs based on resolutions you choose.

Screenshot

Check usage guide for more screenshots.

Demo & Examples

Basic example

To build the basic example locally, run:

yarn install
yarn dev
yarn dev-server

Then open localhost:5001 in a browser.

Webpack example

cd webpack-example
yarn install
yarn start-tessereact

Installation

yarn add -D https://github.com/tessereact/tessereact.git

See Webpack integration guide or create-react-app integration guide for the subsequent installation instructions.

Basic Usage

For the complete usage guide take a look here.

import React from 'react'
import {context, scenario} from 'tessereact'
import Text from '.'

context('Text', () => {
  scenario('Default', () => (
    <Text>Text</Text>
  ))

  scenario('Purple', () => (
    <Text color='purple'>Purple text</Text>
  ), {css: true, screenshot: true})
})

CI Support

Tessereact provides built-in CI support. Start Tessereact with enviroment variable CI=true.

env CI=true yarn start-tessereact

Authors

Contributors

Tessereact contributors

Special thanks to Testshot contributors:

Keywords

FAQs

Package last updated on 24 Oct 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