toptal / Testshot
Licence: mit
Presentational snapshot testing for React
Stars: ✭ 57
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Testshot
Accessibilitysnapshot
Easy regression testing for iOS accessibility
Stars: ✭ 236 (+314.04%)
Mutual labels: snapshot-testing
GFontsSpace
Preview: https://pankajladhar.github.io/GFontsSpace
Stars: ✭ 88 (+54.39%)
Mutual labels: snapshot-testing
Snapshot Diff
Diffing snapshot utility for Jest
Stars: ✭ 490 (+759.65%)
Mutual labels: snapshot-testing
generator-react-jest-tests
A React Jest test generator. Generates snapshot tests for React components.
Stars: ✭ 34 (-40.35%)
Mutual labels: snapshot-testing
json-snapshot.github.io
Snapshot Testing for Java
Stars: ✭ 28 (-50.88%)
Mutual labels: snapshot-testing
Bunit
A testing library for Blazor Components. You can easily define components under test in C# or Razor syntax and verify outcome using semantic HTML diffing/comparison logic. You can easily interact with and inspect components, trigger event handlers, provide cascading values, inject services, mock IJSRuntime, and perform snapshot testing.
Stars: ✭ 415 (+628.07%)
Mutual labels: snapshot-testing
Approvaltests.cpp
Native ApprovalTests for C++ on Linux, Mac and Windows
Stars: ✭ 214 (+275.44%)
Mutual labels: snapshot-testing
Opticlj
A Clojure(Script) expectation/snapshot testing library, inspired by cram, ppx_expect, and jest
Stars: ✭ 19 (-66.67%)
Mutual labels: snapshot-testing
reducer-tester
Utilities for testing redux reducers
Stars: ✭ 19 (-66.67%)
Mutual labels: snapshot-testing
Approvaltests.net
ApprovalTest verification library for .Net
Stars: ✭ 448 (+685.96%)
Mutual labels: snapshot-testing
meeting-app-unit-tests-playground
Unit tests patterns when using JEST and Vue2 (vue-test-utils)
Stars: ✭ 21 (-63.16%)
Mutual labels: snapshot-testing
pytest-snapshot
A plugin for snapshot testing with pytest.
Stars: ✭ 68 (+19.3%)
Mutual labels: snapshot-testing
bUnit
bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
Stars: ✭ 857 (+1403.51%)
Mutual labels: snapshot-testing
Pointfreeco
🎬 The source for www.pointfree.co, a video series on functional programming and the Swift programming language.
Stars: ✭ 782 (+1271.93%)
Mutual labels: snapshot-testing
Fbsnapshotsviewer
A mac os application that shows the failing snapshot tests from FBSnapshotTestCase
Stars: ✭ 221 (+287.72%)
Mutual labels: snapshot-testing
Snapguidist
Snapshot testing for React Styleguidist
Stars: ✭ 287 (+403.51%)
Mutual labels: snapshot-testing
Enzyme To Json
Snapshot test your Enzyme wrappers
Stars: ✭ 954 (+1573.68%)
Mutual labels: snapshot-testing
Playbook Ios
📘A library for isolated developing UI components and automatically taking snapshots of them.
Stars: ✭ 830 (+1356.14%)
Mutual labels: snapshot-testing
Phpunit Snapshot Assertions
A way to test without writing actual test cases
Stars: ✭ 443 (+677.19%)
Mutual labels: snapshot-testing
Testshot
Presentational snapshot testing for React components.
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-testshot
Installation
yarn add @toptal/testshot
Basic Usage
For the complete usage guide take a look here.
import React from 'react'
import {context, scenario} from '@toptal/testshot'
import Text from '.'
context('Text', () => {
scenario('Default', () => (
<Text>Text</Text>
))
scenario('Purple', () => (
<Text color='purple'>Purple text</Text>
))
})
Contributors
Special thanks to:
- Team Portal Toptal Team
- Aleksandar Djuric
- Nadya Tsech
- Sasha Koss
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].