Skip to content

Skip VideoJS custom component code in test coverage - #917

Merged
Dananji merged 1 commit into
mainfrom
test-coverage-report
Mar 26, 2026
Merged

Skip VideoJS custom component code in test coverage#917
Dananji merged 1 commit into
mainfrom
test-coverage-report

Conversation

@Dananji

@Dananji Dananji commented Mar 13, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@cjcolvar cjcolvar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the idea of excluding the custom components that they will be getting rewritten or going away with the videojs upgrade?

@Dananji

Dananji commented Mar 24, 2026

Copy link
Copy Markdown
Collaborator Author

No, I made this change before looking into the upgrade work.

The exclusion in jest.config.js was added because these components are difficult to unit test in isolation because they rely on VideoJS's internal plugin/registration system and DOM lifecycle. This change is going to exclude these components only from the Jest coverage reports, but can still be tested via MediaPlayer.test.js tests.

@Dananji
Dananji merged commit b9b66c5 into main Mar 26, 2026
3 checks passed
@Dananji
Dananji deleted the test-coverage-report branch March 26, 2026 21:40
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

Successfully merging this pull request may close these issues.

2 participants