Skip to content

Broken snapshots on CI due to unicode character #5010

@twschiller

Description

@twschiller

It’s a unicode whitespace issue. If you copy-paste into https://www.soscisurvey.de/tools/view-chars.php you’ll see the diff:

image

That code is for a:

image

The differences appear to be in these methods:

  • toLocaleTimeString
  • toLocaleString

Failure from ParseDate brick:

      Object {
        "local": Object {
          "date": "12/9/2021",
    -     "humanReadable": "12/9/2021, 10:00:00 PM",
    +     "humanReadable": "12/9/2021, 10:00:00 PM",
          "iso8601": "2021-12-09T22:00:00.000-05:00",
    -     "time": "10:00:00 PM",
    +     "time": "10:00:00 PM",
        },
        "utc": Object {
          "date": "12/10/2021",
          "epochMillis": 1639105200000,
          "humanReadable": "Fri, 10 Dec 2021 03:00:00 GMT",
          "iso8601": "2021-12-10T03:00:00.000Z",
    -     "time": "3:00:00 AM",
    +     "time": "3:00:00 AM",
        },
      }

Solution

  • Pin engine in package.json to >= 18.13. Or we could pin to >= 18, < 18.3

Related Tickets

Metadata

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