Confusing escaping behaviours on Windows
See original GitHub issueDo 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:
- Created 5 years ago
- Reactions:4
- Comments:15 (1 by maintainers)
Top 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 >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
@jarvinenio all you!
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.