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

Handle relative paths when fixing keys #390

Merged

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
1 check passed
@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.

None yet

3 participants