question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature]: Allow usage of tsm instead of ts-node?

See original GitHub issue

🚀 Feature Proposal

Jest allows for configuration in TypeScript via ts-node:

https://github.com/facebook/jest/blob/7f39f0a589703191a0cd3c6db558920281f7195f/docs/Configuration.md?plain=1#L37

It would be great to also enable support for tsm

Motivation

  • tsm is lighter weight and faster than ts-node
  • if projects are already using tsm for other tasks, it would be nice to not have to also install ts-node only for Jest

Example

No response

Pitch

Not entirely sure I understand this field, but maybe:

It fits Jest’s ideology of being fast and enabling modern techniques

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SimenBcommented, Nov 7, 2022

Current thinking: https://github.com/facebook/jest/issues/13143#issuecomment-1249081951

I.e. allowing a user to specify which loader to use.

1reaction
SimenBcommented, Oct 22, 2021

PR very much welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reduce RAM Consumption When Using ts-node - Aspecto
Running ts-node-dev / ts-node is constantly consuming hundreds of megabytes of RAM even for small applications - Here's how to handle it.
Read more >
node.js - Different memory usage between compiled typescript ...
When I compile my typescript code, which is exactly the same as the vanilla javascript code, I get an increase in memory usage...
Read more >
Performance issues · Issue #31 · TypeStrong/ts-node - GitHub
I'm working in rather large coffeescript/typescript codebase that takes ~40 seconds to compile (I'm not sure why it takes so long - that's...
Read more >
Optimizing TypeScript Memory Usage - Swatinem
Hint: it is just all the ts internal lib files, plus all of @types/node . Ok, so far this is not really interesting,...
Read more >
Node.js — Increase the Memory Limit for Your Process
The system process of Node.js starts your applications with a default memory limit. If you're going to run an application that saves a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found