0

The problem is that we have to test code coverage in our angular project. So we use nyc, nyc modified source files(and insert some code to collect code coverage), but the issue is that while serving application webpack takes files from memory, not from /dist folder and these files are without our changes from nyc.

in summary what we are doing:

  1. we are builing project and get files in /dist folder
  2. we run some scripts and modify our source files in /dist folder.
  3. we run application and dont see our changes, because webpack takes source files from it's own memory not from /dist folder.

the question is: how to run angular and force it to take files from /dist

2
  • 1
    Why don't you use a built-in coverage reporter (ng test --code-coverage)? Commented Mar 29, 2024 at 12:34
  • Please provide enough code so others can better understand or reproduce the problem. Commented Mar 29, 2024 at 23:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.