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

Node 20.12.1 x Jest; shouldPolyfill results in RangeError. Incorrect locale information provided #4387

Closed
jimvermillion opened this issue Apr 9, 2024 · 1 comment

Comments

@jimvermillion
Copy link

Which package?

intl-relativetimeformat
intl-pluralrules

Describe the bug

Unexpected error is thrown in unit tests after upgrading nodejs
It's possible this is a bug with NodeJS, but I don't know the inner workings of FormatJS, so if assessed as such please close this bug.

To Reproduce

  1. On Node v20.12.1, not observed in earlier version like 20.9.0
  2. Create a unit test for a component that shouldPolyfill is invoked in
  3. run test
  4. when shouldPolyfill is called in either intl-relativetimeformat or intl-pluralrules error is thrown

Codesandbox URL

Not observed in actual application

Expected behavior

Calling shouldPolyfill shouldn't err in jest test

Desktop (please complete the following information):

  • OS: OSX
  • Browser: NA, Jest
  • Versions: intl-relativetimeformat v10.0.1, intl-pluralrules v4.3.3
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label May 10, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant