When working in a JavaScript file (controller.js), I have an import of a ts file (service).
import {service} from "../../../service";
During project execution (both development and production), everything functions correctly. However, when running karma, the following error occurs:
ERROR in ..../controller.js Module not found: Error: Can't resolve '../../../service' in 'C:\Workspaces....'
If I include the extension, it works without issues, but this requires changes in multiple locations.
Is there a way to configure karma to function as it does in production and development?
The technology stack being utilized includes webpack, karma, and mocha.