Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Add updateSnapshot CLI arg for updating snapshots #75

Merged
merged 1 commit into from
Dec 16, 2017

Conversation

KevinGrandon
Copy link
Contributor

@KevinGrandon KevinGrandon commented Dec 15, 2017

Adds a CLI arg, --updateSnapshot which will pass through to jest and update test snapshots.

Fixes #68

@KevinGrandon KevinGrandon changed the title Snapshotting Add snapshot tests Dec 15, 2017
@codecov
Copy link

codecov bot commented Dec 15, 2017

Codecov Report

Merging #75 into master will decrease coverage by 0.18%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
- Coverage   67.67%   67.48%   -0.19%     
==========================================
  Files          69       69              
  Lines        1460     1464       +4     
  Branches      324      325       +1     
==========================================
  Hits          988      988              
- Misses        417      421       +4     
  Partials       55       55
Impacted Files Coverage Δ
build/test-app-runtime.js 7.14% <0%> (-0.36%) ⬇️
commands/test-app.js 40% <25%> (-10%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5199a47...b69f49e. Read the comment docs.

@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible to not have these comments in here? Having some non-jest-specific api for snapshot testing will allow us to change the underlying implementation in the future, if we want to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking into it, but I don't believe so. I bet we could codemod the snapshot engine though if needed.

@KevinGrandon KevinGrandon force-pushed the snapshotting branch 2 times, most recently from 691fed0 to d07192d Compare December 15, 2017 20:58
@KevinGrandon KevinGrandon added P2 and removed P2 labels Dec 15, 2017
@KevinGrandon KevinGrandon changed the title Add snapshot tests Add updateSnapshot CLI arg for updating snapshots Dec 15, 2017
@KevinGrandon
Copy link
Contributor Author

!merge

@old-fusion-bot old-fusion-bot bot merged commit 68df3e9 into fusionjs:master Dec 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants