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

feat: added an option to disable ts-node #15161

Merged
merged 16 commits into from
Jul 12, 2024
Merged

Conversation

k-rajat19
Copy link
Contributor

Summary

fixes #14317

Added DISABLE_TS_NODE env variable to disable ts-node typechecking

Test plan

Tests are passing

Copy link

linux-foundation-easycla bot commented Jul 3, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

netlify bot commented Jul 3, 2024

Deploy Preview for jestjs ready!

Name Link
🔨 Latest commit b6e4d4d
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/6690e4a21da1bf00087b5270
😎 Deploy Preview https://deploy-preview-15161--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 site configuration.

@k-rajat19 k-rajat19 changed the title feat: added env variable to disable ts-node feat: added an option to disable ts-node Jul 3, 2024
Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

thanks! could you add a changelog entry, and maybe update the docs? E.g. the ts-node mention in here could also mention this flag: https://jestjs.io/docs/configuration

packages/jest-config/src/readConfigFileAndSetRootDir.ts Outdated Show resolved Hide resolved
Comment on lines 84 to 92
expect(stderr).toMatch('must be of type');
expect(stderr).toMatch(
"TS2322: Type 'string' is not assignable to type 'number'.",
);
expect(stderr).not.toMatch('Option "testTimeout" must be of type:');
expect(exitCode).toBe(1);
Copy link
Member

Choose a reason for hiding this comment

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

this test didn't actually produce a type error

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

thanks!

@SimenB SimenB enabled auto-merge (squash) July 12, 2024 07:22
This reverts commit 2f89f20.
@SimenB SimenB disabled auto-merge July 12, 2024 08:17
@SimenB SimenB merged commit 19bf1cd into jestjs:main Jul 12, 2024
83 of 84 checks passed
@k-rajat19 k-rajat19 deleted the fix-14317 branch July 12, 2024 09:37
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 Aug 12, 2024
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.

[Feature]: disable ts-node
2 participants