Skip to content

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

Open
@latin-1

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions