Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken snapshots on CI due to unicode character #5010

Closed
twschiller opened this issue Jan 14, 2023 · 2 comments · Fixed by #5013
Closed

Broken snapshots on CI due to unicode character #5010

twschiller opened this issue Jan 14, 2023 · 2 comments · Fixed by #5013
Labels
bug Something isn't working developer experience

Comments

@twschiller
Copy link
Contributor

twschiller commented Jan 14, 2023

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

@twschiller twschiller added bug Something isn't working developer experience labels Jan 14, 2023
@twschiller twschiller changed the title Broken snapshots on CI due to unicode characted Broken snapshots on CI due to unicode character Jan 14, 2023
@fregante
Copy link
Collaborator

Good find! Let's pin to a recent version. It should be as easy as changing the .nvmrc file and ensuring the team is up to date (as well as updating the snapshots)

@fregante fregante linked a pull request Jan 15, 2023 that will close this issue
@fregante
Copy link
Collaborator

fregante commented Jan 15, 2023

I think GitHub is now consistently pulling 18.13 and every single CI test is consistently failing. For this I updated the snapshots in #5010 and set the minimum version to 18.13

This can be changed if undesired (ideally not, this is the future anyway) but I made the change to unblock the 10 PRs waiting for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working developer experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants