Skip to content
 
 

Repository files navigation

Tessereact

Presentational snapshot testing for React components.

Tessereact is Testshot fork which supports CSS and screen snapshots 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:5000 in a browser.

create-react-app example

cd create-react-app-example
yarn start-tessereact

Installation

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

Configuring Webpack

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>
  ))
})

Contributors

See here

Special thanks to:

About

Presentational snapshot testing for React (HTML, CSS, Screenshots)

Resources

Stars

18 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages