question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test with template literal is not working

See original GitHub issue

If 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:open
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
micaelmbagiracommented, Feb 1, 2021

@firsttris unfortunately, updating jest-editor-support didn’t fix it 😢

0reactions
mhombachcommented, Mar 24, 2022

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

it('should trigger `onChange` event when value changes', () => {...

The onChange in this case is considered as a bash-command (which doesn’t exist) because it’s used directly in the commandline.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found