Skip to content

Test262 update#3103

Merged
ptomato merged 5 commits intomainfrom
test262-update
Apr 17, 2025
Merged

Test262 update#3103
ptomato merged 5 commits intomainfrom
test262-update

Conversation

@ptomato
Copy link
Copy Markdown
Collaborator

@ptomato ptomato commented Apr 14, 2025

  • Add a workaround from @justingrant to handle offset time zones with Unicode minus sign regardless of Node version
  • Update to latest test262 to pull in some new Temporal tests
  • Run CI jobs on Node 22.x, upgraded from 20.x

In Node 23, offset time zone IDs are now supported by
`Intl.DateTimeFormat`.

This commit changes the polyfill to handle these IDs.
@ptomato ptomato requested a review from justingrant April 14, 2025 18:03
@ptomato
Copy link
Copy Markdown
Collaborator Author

ptomato commented Apr 14, 2025

I see the CI upgrade broke the cookbook, I'll remove the upgrade from this PR for the time being while I investigate that.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.71%. Comparing base (9999373) to head (0fcd3c2).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3103      +/-   ##
==========================================
+ Coverage   96.05%   96.71%   +0.66%     
==========================================
  Files          21       21              
  Lines        9951     9951              
  Branches     1802     1807       +5     
==========================================
+ Hits         9558     9624      +66     
+ Misses        346      281      -65     
+ Partials       47       46       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ptomato
Copy link
Copy Markdown
Collaborator Author

ptomato commented Apr 14, 2025

CI change restored.

Copy link
Copy Markdown
Collaborator

@justingrant justingrant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but why not upgrade to Node 23 while we're at it?

@ptomato
Copy link
Copy Markdown
Collaborator Author

ptomato commented Apr 17, 2025

I seemed to remember that we were sticking to the LTS version, but maybe I just made that up. Node 23.x sounds good to me!

ptomato added 4 commits April 17, 2025 12:31
This is not needed at all. We can just import temporal.mjs in the one
place in the Demitasse tests where we need a Temporal object. (One other
place, it was imported unnecessarily; remove that.)
Also no reason to use a resolver here, which is an unstable Node API.
Instead use --require to import the bundled polyfill, and --eval to
create a global assert() function.
23.x is now the current Node version. We should run the CI on that
version so it doesn't diverge too much from what is likely to be our
local setup.

Intl.DurationFormat is available in that release so we can remove one
test from the ignore file.
@ptomato ptomato merged commit fd7988d into main Apr 17, 2025
10 checks passed
@ptomato ptomato deleted the test262-update branch April 17, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants