jest icon indicating copy to clipboard operation
jest copied to clipboard

Files containing "ñ" or other non-ascii characters are not picked in watch or onlyChanged

Open InExtremaRes opened this issue 5 years ago • 3 comments

🐛 Bug Report

When running jest using --watch or --onlyChanged (under a git repository), modified files including extraneous characters (like simple UTF-8 one as "ñ" or "á") are not taken into account. For instance a file named año.test.js or árabe.test.js does not run even if the file changed since the last commit.

To Reproduce

In a project with everything commited (as the linked one) add/change a test file named something like año.test.js. If you run jest either with --watch or -o the file doesn't run.

Expected behavior

The file run in watch mode as any other file not containing those characters.

Link to repl or repo (highly encouraged)

https://github.com/InExtremaRes/jest-repr-unicode

There are two tests files: sum.test.js and sumñ.test.js. If you run the tests in watch mode (npm test -- --watch) and then made a change to sumñ.test.js, the file doesn't run. If you make the same change in sum.test.js it runs as expected.

envinfo

  System:
    OS: Linux 5.7 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
  Binaries:
    Node: 12.17.0 - /usr/bin/node
    npm: 6.14.5 - /usr/bin/npm
  npmPackages:
    jest: ^26.1.0 => 26.1.0 

InExtremaRes avatar Jul 13 '20 21:07 InExtremaRes

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Feb 17 '23 16:02 github-actions[bot]

This is still an issue. I updated the repro repo to Jest 29.4.3 and the behavior is the same as described.

InExtremaRes avatar Feb 17 '23 17:02 InExtremaRes

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Feb 17 '24 18:02 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] avatar Mar 18 '24 19:03 github-actions[bot]

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.

github-actions[bot] avatar Apr 18 '24 00:04 github-actions[bot]