Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c8 is cashing filename/directories which do not update on change #507

Open
TekuConcept opened this issue Dec 9, 2023 · 0 comments
Open

Comments

@TekuConcept
Copy link

  • Version: v19.8.1
  • Platform: Darwin 22.1.0 Darwin Kernel Version 22.1.0 arm64

I ran c8 once, then changed the file-naming and folder structure, and ran c8 again. The paths do not update as expected in the coverage. I've deleted the coverage folder and pretty much all generated files - still no luck.

If I change the naming of certain exports, then the file paths update to their correct paths. However, if I revert them back to their original export values, the old paths are used again.

---------------|---------|----------|---------|---------|-------------------
File           | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
---------------|---------|----------|---------|---------|-------------------
All files      |     100 |      100 |     100 |     100 |                   
 nodes         |     100 |      100 |     100 |     100 |                   
  token.ts     |     100 |      100 |     100 |     100 |                   
 printer/nodes |     100 |      100 |     100 |     100 |                   
  base-node.ts |     100 |      100 |     100 |     100 |                   
 printer/utils |     100 |      100 |     100 |     100 |                   
  index.ts     |     100 |      100 |     100 |     100 | 

The printer/ folder no longer exists, and printer/nodes/ was moved to nodes/. As seen in the above output, new coverage tests reflect the latest path eg nodes/token.ts, but old coverage tests still use the old paths eg printer/nodes/base-nodes.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant