testify icon indicating copy to clipboard operation
testify copied to clipboard

Double quotes should be escaped from the command

Open BigsonLvrocha opened this issue 4 years ago • 1 comments

Describe the bug If there is a test with " character, it will not be escaped and the command will be wrong, potentially running every tests

To Reproduce Steps to reproduce the behavior:

  1. Make a test with " in description
  2. Click on run test
  3. See terminal command
  4. See all tests running or command failing

Expected behavior " should be transormed into \" in command

Screenshots Captura de tela de 2021-08-04 11-29-57

Desktop (please complete the following information):

  • OS: Ubuntu 21.04
  • Version 1.9.0

BigsonLvrocha avatar Aug 04 '21 14:08 BigsonLvrocha

Hello @BigsonLvrocha !

Have you tried to run this test using the command line just to verify that Jest is able to understand that syntax?

felixjb avatar Aug 11 '21 14:08 felixjb

Fixed in the latest version!

felixjb avatar Apr 17 '24 20:04 felixjb