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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: disable ts-node #14317

Open
Ayc0 opened this issue Jul 10, 2023 · 3 comments 路 May be fixed by #15161
Open

[Feature]: disable ts-node #14317

Ayc0 opened this issue Jul 10, 2023 · 3 comments 路 May be fixed by #15161

Comments

@Ayc0
Copy link
Contributor

Ayc0 commented Jul 10, 2023

馃殌 Feature Proposal

Add an option in Jest (maybe via a env variable) to disable enabling ts-node.

Another option would be to disable the typecheck in ts-node in

return tsNode.register({
compilerOptions: {
module: 'CommonJS',
},
moduleTypes: {
'**': 'cjs',
},
(with transpileOnly: true)

Motivation

In one of my projects, I use jest from a script already coded in TS and thus that already has ts-node started.
And applying a second time within jest throws TS errors

Example

No response

Pitch

ts-node is directly called by the internal of jest so we cannot be modified otherwise

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

This issue is stale because it has been open 30 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 Aug 9, 2023
@Ayc0
Copy link
Contributor Author

Ayc0 commented Aug 9, 2023

Not stale

@github-actions github-actions bot removed the Stale label Aug 9, 2023
@github-actions
Copy link

github-actions bot commented Sep 8, 2023

This issue is stale because it has been open 30 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 Sep 8, 2023
@SimenB SimenB added Pinned and removed Stale labels Sep 9, 2023
@k-rajat19 k-rajat19 linked a pull request Jul 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants