Skip to content

use moduleName instead of name when building namespace mappings#381

Merged
rwjblue merged 1 commit intoember-cli-code-coverage:masterfrom
yangpiao:master
Jun 7, 2023
Merged

use moduleName instead of name when building namespace mappings#381
rwjblue merged 1 commit intoember-cli-code-coverage:masterfrom
yangpiao:master

Conversation

@yangpiao
Copy link

@yangpiao yangpiao commented May 17, 2023

If an addon overrides moduleName to be different from name, the code coverage would be all 0. This PR changes item.name to item.moduleName(). moduleName returns name by default so this should cover both cases.

@rwjblue rwjblue added the bug label Jun 7, 2023
@rwjblue rwjblue merged commit 2428533 into ember-cli-code-coverage:master Jun 7, 2023
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