You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running coverage report with html-spa reporter (through jest) and there's more than one top-level directory for example:
/src
/test
The output index.html location will be correct (inside the default /coverage function for jest) that is: /coverage/index.html.
But if I excluded the /test folder from collecting coverage, the output index.html will be inside the /src folder, that is: /coverage/src/index.html. Which if open, will not be able to find the top-level resource(CSS, JS) but if I manually move the file to /coverage/index.html it'll works.
Also I observe that after I move the file and open it, the directory seems to be flattened. For example, instead of seeing an entry for /src/app.ts, I only see app.ts
version:
jest: 27.5.1
istanbul-reports 3.1.5
The text was updated successfully, but these errors were encountered:
When running coverage report with
html-spa
reporter (through jest) and there's more than one top-level directory for example:The output index.html location will be correct (inside the default /coverage function for jest) that is:
/coverage/index.html
.But if I excluded the
/test
folder from collecting coverage, the outputindex.html
will be inside the/src
folder, that is:/coverage/src/index.html
. Which if open, will not be able to find the top-level resource(CSS, JS) but if I manually move the file to/coverage/index.html
it'll works.Also I observe that after I move the file and open it, the directory seems to be flattened. For example, instead of seeing an entry for
/src/app.ts
, I only seeapp.ts
version:
The text was updated successfully, but these errors were encountered: