You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project with a jest.config.ts, and ts-node and jest both installed. But knip shows me that ts-node is a Unused devDependencies. This is a bug or am I missing something?
marco-carvalho
changed the title
Jest requires "ts-node" to read TypeScript configuration files
To read TypeScript configuration files Jest requires "ts-node"
May 2, 2024
If there's no reference to ts-node then Knip will report it as unused.
Knip can't assume ts-node is required, otherwise it would be incorrectly reported as an unlisted dependency in situations where it's not used.
But if there's a way to figure out this distinction, we can add a condition. For instance, "if the config file ends with .ts then ts-node is required".
I have a project with a
jest.config.ts
, andts-node
andjest
both installed. Butknip
shows me thatts-node
is aUnused devDependencies
. This is a bug or am I missing something?https://jestjs.io/docs/configuration
The text was updated successfully, but these errors were encountered: