Testing HTML5 Video in React

377 views
Skip to first unread message

Adam Gordon

unread,
Jun 11, 2021, 2:44:57 PM6/11/21
to Chromium-discuss
This is not specifically a Chromium-related question but it was suggested by some Googlers to start here.

We would like to write unit tests against our interactive HTML5 video player.  We're using react-testing-library and Jest.  Jest uses JSDOM under the hood which does not have support for the HTML5 video API.  We can mock out the API for testing, but I wanted to reach out and see if anyone is already writing unit tests against their player in React and could perhaps share some thoughts.

Thanks,

--adam
Reply all
Reply to author
Forward
0 new messages