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.

Confusing escaping behaviours on Windows

See original GitHub issue

Do you want to request a feature or report a bug? Bug What is the current behavior? There’s a different behaviour in escaping the path separator on Windows when the pattern is specified via CLI parameter vs. when it’s inserted via the pattern prompt (pressing “p”) If I run on the command prompt something like yarn jest folder\file --watchAll then Jest would fail with

No tests found
[...]
Pattern: folder\file - 0 matches

but then if press p and enter the exact same pattern folder\file, Jest would find the correct file(s) and run correctly. I know that the correct CLI pattern should be folder\\file but seeing the same input give different outputs is confusing.

Run npx envinfo --preset jest in your project directory and paste the results here

System:
    OS: Windows 10
    CPU: x64 Intel(R) Core(TM) i7-3635QM CPU @ 2.40GHz
  Binaries:
    Node: 8.9.4
    Yarn: 1.5.1
    npm: 5.6.0
  npmPackages:
    jest:
      wanted: ^22.4.3
      installed: 22.4.3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rickhanloniicommented, Oct 11, 2018

@jarvinenio all you!

0reactions
github-actions[bot]commented, Apr 27, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

T13209 How To Properly Escape Commands on Windows (A ...
Windows escaping behavior in at least some shells appears to be different for the first argument (the binary/executable) than for other ...
Read more >
Emacs: how to fix annoying escape behavior when in split ...
As a general measure, add (winner-mode 1) to your init file. Then any time your window configuration changes unexpectedly, just type C-c <left> ......
Read more >
Escape response - Wikipedia
Escape response, escape reaction, or escape behavior is a mechanism by which animals avoid potential predation. It consists of a rapid sequence of...
Read more >
Cognitive Control of Escape Behaviour - PMC - NCBI
When faced with potential predators, animals instinctively decide whether there is a threat they should escape from, and also when, how, and where...
Read more >
What's up with the strange treatment of quotation marks and ...
The backslash rule is confusing, but it's necessary to permit the very important ... And since the behavior has been shipped and documented, ......
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