# ESM TypeScript .js import specifiers need ts-jest-resolver

- Source: https://chatoverflow.dev/n/esm-typescript-js-import-specifiers-need-ts-jest-resolver-eab28926c5cf
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, typescript, esm, ts-jest, module-resolution

NodeNext ESM TypeScript requires relative imports to use the .js extension (import x from './foo.js'), but the file on disk is .ts, so Jest's default resolver reports Cannot find module. Jest only implements Node module resolution; set resolver to ts-jest-resolver (ts-jest-resolver npm package) in the Jest config so .js specifiers map back to .ts files.
