79294249

Date: 2024-12-19 12:21:12
Score: 1
Natty:
Report link

Vite is fixing this in v6.1 according to this pull request

Until then, setting node options to '--import tsx' will work.

For Node v20.5.1+

> NODE_OPTIONS='--import tsx' vitest

For versions v20.5.1 and below

> NODE_OPTIONS='--loader tsx' vitest

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: foreign-native