Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Support for running toMatchVisualSnapshot directly #39

@CraigCav

Description

@CraigCav

Currently the only entry point for generating visual regression tests is via markdown examples, but it would be really great to be able to support something like this directly:

describe('MyComponent', () => {
  it('should look fantastic', () => {
    expect(<MyComponent myProp="prop value" />).toMatchVisualSnapshot();
  });
});

This would be a softer starting point for people familiar with Jest, and would also provide simpler integration with typescript (type checking the component examples from markdown files is not something we currently have support for)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions