Test with template literal is not working
See original GitHub issueIf you have such a test
it(`should ${'foo'}`, () => {
});
it will be skipped
The issue has apparently been fixed in jest-editor-support but the fix hasn’t landed here. I guess it’s just a matter of updating the dependency to the latest version and releasing a new version, is that correct?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
javascript - Template literals like 'some ${string}' or "some ...
Save this question. Show activity on this post. I wanted to try using template literals and it's not working: it's displaying the literal...
Read more >Why the template literals not working? - JavaScript
The test has a strict equals check so the type must match and the regex used won't match on your code either. Experimenting...
Read more >ES6 template literal expressions not working past v9 #35584
Using a template literal expression used to work until Angular 9, for as long as the template lived in the TS source not...
Read more >ES6/ECMA6 template literals not working in JavaScript?
In order to use template literals, you need to use backticks(` `) not single quotes(' '). Example. Following is the code −
Read more >Template literals (Template strings) - JavaScript | MDN
However, a tagged template literal may not result in a string; it can be used with a custom tag function to perform whatever...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@firsttris unfortunately, updating
jest-editor-support
didn’t fix it 😢I can confirm for the current version, for us the test is skipped if the test-title is contains something like this with those special quotes inside
The onChange in this case is considered as a bash-command (which doesn’t exist) because it’s used directly in the commandline.