Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce jest snapshot testing utils (fixes #135) #297

Merged
merged 2 commits into from
Oct 21, 2019

Commits on Dec 14, 2018

  1. Introduce jest snapshot testing utils (fixes facebook#135)

    - Refactored `runInlineTest` and extracted `applyTransform` function
    - Introduced `runSnapshotTest`, same as `runInlineTest` but takes no `expectedOutput`
        - maybe worth merging the two, but that requires breaking change
    - Introduced `defineSnapshotTest`, same as `defineInlineTest` but takes no `expectedOutput`
        - maybe worth merging the two, but that requires breaking change
    - `runInlineTest` and `runSnapshopTest` now both also return the result `applyTransform`
        - This can be used to take the result of one run and use it for another (check for idempotent)
    dogoku committed Dec 14, 2018
    Configuration menu
    Copy the full SHA
    413c558 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60cfda5 View commit details
    Browse the repository at this point in the history