Skip to content

feat(runtime): use compileFunction over new Script #15461

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

Merged
merged 2 commits into from
May 27, 2025

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Jan 16, 2025

Summary

Reapplies and closes #12205.

Node 16 still has issues (and I don't intend to drop it for Jest 30), but most people are deffo on newer versions than that

Test plan

CI?

Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 6ad4eeb
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/683545f25e69100008dfc468
😎 Deploy Preview https://deploy-preview-15461--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

'__tests__/b.test.js': "test('b', () => console.log('b'));",
'package.json': JSON.stringify({jest: {testEnvironment: 'jsdom'}}),
});
onNodeVersions('> 16', () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is unfortunate, but hopefully most people have moved on from node 16 😀

@andreibereczki
Copy link
Contributor

The following CI checks should also be removed in this case:
Ubuntu with shard 1/4 / Node v16.x
Ubuntu with shard 2/4 / Node v16.x
Ubuntu with shard 3/4 / Node v16.x
Ubuntu with shard 4/4 / Node v16.x

@andreibereczki
Copy link
Contributor

Also: there's a line in the changelog about dropped node versions. v16 should be added to the list

Copy link

This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Apr 21, 2025
Copy link

This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one.

@github-actions github-actions bot closed this May 21, 2025
Copy link

This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one.

@cpojer cpojer reopened this May 21, 2025
@cpojer
Copy link
Member

cpojer commented May 21, 2025

Node 16 has been EOL for almost two years, so let's drop it for 30. Is the only blocker node 16?

@github-actions github-actions bot removed the Stale label May 22, 2025
@cpojer cpojer force-pushed the use-compile-function branch from d72158a to 8ac37f8 Compare May 27, 2025 04:11
@cpojer
Copy link
Member

cpojer commented May 27, 2025

Ok, rebased and got rid of the Node 16 check.

@cpojer cpojer force-pushed the use-compile-function branch from 8ac37f8 to 691e4a3 Compare May 27, 2025 04:12
@cpojer cpojer enabled auto-merge (squash) May 27, 2025 04:41
@cpojer cpojer disabled auto-merge May 27, 2025 04:56
@cpojer cpojer merged commit f48a959 into jestjs:main May 27, 2025
7 of 8 checks passed
@SimenB SimenB deleted the use-compile-function branch May 29, 2025 09:34
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants