I was using the paths option in the tsconfig
for cleaner imports. Then I was running some tests using mocha
and ts-node
. But when I executed the tests, the paths didn't resolve as configured in the tsconfig.json
file.
To solve the issue, you'll need to install an extra path resolver like tsconfig-paths
and then register it with tsconfig-path/register
.