jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
44.23k stars 6.46k forks source link

[Bug]: Snapshot testing does not detect the difference between CR ("\r") and LF ("\n") #15204

Open latin-1 opened 3 months ago

latin-1 commented 3 months ago

Version

29.7.0 and 30.0.0-alpha.5

Steps to reproduce

Expected behavior

It should fail because of the difference between CR and LF.

Actual behavior

The test passed.

Additional context

No response

Environment

System:
    OS: Linux 6.9 Arch Linux
    CPU: (16) x64 AMD Ryzen 7 6800U with Radeon Graphics
  Binaries:
    Node: 22.5.1 - ~/.proto/shims/node
    Yarn: 4.3.1 - ~/.proto/shims/yarn
    npm: 10.8.2 - ~/.proto/shims/npm
    pnpm: 9.5.0 - ~/.proto/shims/pnpm
    bun: 1.1.20 - ~/.proto/shims/bun
  npmPackages:
    jest: 29.7.0 => 29.7.0
github-actions[bot] commented 2 months ago

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

latin-1 commented 2 months ago

not stale

github-actions[bot] commented 1 month ago

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

latin-1 commented 1 month ago

bump

github-actions[bot] commented 1 week ago

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