diff --git a/src/screen.ts b/src/screen.ts index c526d2e8..0b3cc8c8 100644 --- a/src/screen.ts +++ b/src/screen.ts @@ -39,10 +39,9 @@ const logTestingPlaygroundURL = (element = getDocument().body) => { console.log(`The provided element doesn't have any children.`) return } - console.log( - `Open this URL in your browser\n\n${getPlaygroundUrl(element.innerHTML)}`, - ) - return getPlaygroundUrl(element.innerHTML) + const playgroundUrl = getPlaygroundUrl(element.innerHTML) + console.log(`Open this URL in your browser\n\n${playgroundUrl}`) + return playgroundUrl } const initialValue = {debug, logTestingPlaygroundURL}