Skip to content

Handle relative paths when fixing keys#390

Merged
RobbieTheWagner merged 2 commits intoember-cli-code-coverage:masterfrom
wagenet:fix-adjacent-mapping
Nov 7, 2023
Merged

Handle relative paths when fixing keys#390
RobbieTheWagner merged 2 commits intoember-cli-code-coverage:masterfrom
wagenet:fix-adjacent-mapping

Conversation

@wagenet
Copy link
Contributor

@wagenet wagenet commented Oct 5, 2023

We have a mono repo with v2-style in-repo addons and tests. For instance, we have ROOT/addons/internal and ROOT/tests/internal. The path relative to our tests end up looking like ../../addons/internal. Without the new conditional, we'd end up hitting the fallback case which tries to make everything relative to tests/internal/app this would end up getting translated into ROOT/tests/addons/internal which is not the correct path. I believe it should always be correct to pass relative paths through as-is, which is what I've done here. This solves the problem for our uses.

@kiwiupover
Copy link
Contributor

@wagenet what is up with the test failures?

@wagenet
Copy link
Contributor Author

wagenet commented Oct 20, 2023

@kiwiupover looks like there's a bug for the embroider case. I believe I've fixed it now, but we should note that the embroider case is actually currently testing that we get no coverage metrics! This certainly seems wrong, but should be addressed in another PR.

@RobbieTheWagner RobbieTheWagner merged commit 3034bae into ember-cli-code-coverage:master Nov 7, 2023
@wagenet wagenet deleted the fix-adjacent-mapping branch January 4, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants