Skip to content

Commit

Permalink
docs: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gareth Jones <Jones258@Gmail.com>
  • Loading branch information
viestat and G-Rath committed Jul 1, 2020
1 parent d83c060 commit 8c448e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/rules/no-interpolation-inline-snapshot.md
@@ -1,12 +1,11 @@
# Disallow string interpolation inside inline snapshots (`no-interpolation-inline-snapshot`)

Prevents the use of string interpolations within `toMatchInlineSnapshot`.
Prevents the use of string interpolations in snapshots.

## Rule Details

Interpolation prevents snapshots from being updated. Instead, properties should
be overloaded with a matcher by passing the optional `propertyMatchers` argument
to `toMatchInlineSnapshot`.
be overloaded with a matcher by using [property matchers](https://jestjs.io/docs/en/snapshot-testing#property-matchers).

Examples of **incorrect** code for this rule:

Expand Down

0 comments on commit 8c448e9

Please sign in to comment.