Skip to content

chore(jest): convert tests to snapshots#121

Merged
with-heart merged 1 commit intomasterfrom
chore/119-snapshot-testing
Jul 8, 2019
Merged

chore(jest): convert tests to snapshots#121
with-heart merged 1 commit intomasterfrom
chore/119-snapshot-testing

Conversation

@with-heart
Copy link
Copy Markdown
Collaborator

This PR closes #119 by converting the tests for utilities and customizers to snapshot tests. Since the outcome of each function represents a single transformation of the config file, a snapshot diff will make it very clear what part of the transformation is failing.

Note that this doesn't mean we shouldn't test other things (side effects, etc.), only that we want to always test against the produced config to make sure the expected transformation occurs.

@with-heart with-heart added this to the 1.0 milestone Jul 8, 2019
@with-heart with-heart merged commit 2c62773 into master Jul 8, 2019
@with-heart with-heart deleted the chore/119-snapshot-testing branch July 8, 2019 00:44
@with-heart with-heart restored the chore/119-snapshot-testing branch August 10, 2019 16:41
@with-heart with-heart deleted the chore/119-snapshot-testing branch August 10, 2019 16:44
@with-heart with-heart restored the chore/119-snapshot-testing branch September 4, 2019 15:47
@with-heart with-heart deleted the chore/119-snapshot-testing branch September 4, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch to snapshot testing

1 participant