Skip to content

Commit

Permalink
test: Bypass log settings for support dump (#6654)
Browse files Browse the repository at this point in the history
Karma creates a dump() function on the context window that we can use to
log something to the console without respect for the normal
captureConsole setting. Use this for the output of probeSupport(), so we
always have it in CI logs.
  • Loading branch information
joeyparrish committed May 22, 2024
1 parent 21df572 commit 7ab0691
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ function configureJasmineEnvironment() {
async function logSupport() {
try {
const support = await shaka.Player.probeSupport();
console.log('Platform support:', JSON.stringify(support, null, 2));
// Bypass Karma's log settings and dump this to the console.
window.dump('Platform support:' + JSON.stringify(support, null, 2));
// eslint-disable-next-line no-restricted-syntax
} catch (error) {
console.error('Support check failed at boot!', error);
Expand Down

0 comments on commit 7ab0691

Please sign in to comment.