📝 Disallow string interpolation in snapshots.
💼recommended config. This rule warns in the 🌐 all config.
🔧 This rule is automatically fixable by the --fix CLI option.
This rule aims to prevent the use of string interpolation in snapshots.
expect('foo').toMatchSnapshot(`${bar}`)
expect('foo').toMatchSnapshot(`foo ${bar}`)expect('foo').toMatchSnapshot()
expect('foo').toMatchSnapshot('foo')
expect('foo').toMatchSnapshot(bar)