monounity / karma-typescript

Simplifying running unit tests with coverage for Typescript projects.
313 stars 110 forks source link

Error: No source found for .d.ts file #623

Closed denys119 closed 5 months ago

denys119 commented 5 months ago

I have a small application where I am testing some TypeScript code using karma-typescript.

The problem is that I have an 'app' folder that contains a 'node_modules' directory where I installed a package for testing. When I run the tests, I encounter this error: "Error: No source found for D:/Teste/karma-testts/app/node_modules/entities/lib/decode_codepoint.d.ts!"

I am aware that this issue might be related to this one, but I can't figure out the solution.

I have a GitHub repository where I provided a small reproduction here reproduction

What have I done wrong?

Thank you!

image