diff --git a/ts/test/test-utils/utils/components.ts b/ts/test/test-utils/utils/components.ts index 1d9519eb6..d912691bf 100644 --- a/ts/test/test-utils/utils/components.ts +++ b/ts/test/test-utils/utils/components.ts @@ -3,14 +3,18 @@ import { enableLogRedirect } from './stubbing'; const printHTMLElement = async (element: HTMLElement, name?: string) => { if (!window.log || !enableLogRedirect) { - throw Error('window.log is not defined. Have you turned on enableLogRedirect?'); + throw Error( + 'window.log is not defined. Have you turned on enableLogRedirect / called stubWindowLog() ?' + ); } return window.log.debug(`\nHTML Element${name ? ` (${name})` : ''}:\n${prettyDOM(element)}\n`); }; const printRenderResult = async (result: RenderResult, name?: string) => { if (!window.log || !enableLogRedirect) { - throw Error('window.log is not defined. Have you turned on enableLogRedirect?'); + throw Error( + 'window.log is not defined. Have you turned on enableLogRedirect / called stubWindowLog() ?' + ); } return window.log.debug(