Skip to content

Conversation

@ronami
Copy link
Contributor

@ronami ronami commented Mar 12, 2019

Summary

Hey, since the recent release (with #237), two different template literals with no expressions will show a lint error. This happens because we try to get their value in a way that doesn't work for template literals and get undefined (see here).

This PR handles this use-case and adds a test to it (which would fail the last release).

Thanks 🙏

@ronami ronami changed the title fix(jest/no-identical-title): errors shown different string literals fix(jest/no-identical-title): don't show an error for different template literals with no expressions Mar 12, 2019
@ronami ronami changed the title fix(jest/no-identical-title): don't show an error for different template literals with no expressions fix(jest/no-identical-title): don't show an error for different template literals Mar 12, 2019
Copy link
Contributor

@ranyitz ranyitz left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

Thanks!

@SimenB SimenB merged commit f6f6d84 into jest-community:master Mar 12, 2019
@SimenB
Copy link
Member

SimenB commented Mar 12, 2019

🎉 This PR is included in version 22.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ronami ronami deleted the fix-identical-template-literal branch March 12, 2019 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants