You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that this particular console.log is unnecessarily printing null in unit tests or a server (SSR) environment. In each of these cases, the application insights object is instantiated, but is not actually initialized - it is only initialized on the browser.
However, in these environments, it always prints null to console and really clutters the test output.
I'm not sure what purpose this console.log serves; but I am happy to contribute a PR in case you have suggestions for what can be done to reduce the noise.
The text was updated successfully, but these errors were encountered:
Hi there!
I have noticed that this particular
console.log
is unnecessarily printingnull
in unit tests or a server (SSR) environment. In each of these cases, the application insights object is instantiated, but is not actually initialized - it is only initialized on the browser.https://github.com/microsoft/ApplicationInsights-JS/blob/724d5204e3cdc50d9402d415f021d816a4c11b45/extensions/applicationinsights-debugplugin-js/src/components/styleNodeSrc.ts#L18C1-L18C29
However, in these environments, it always prints
null
to console and really clutters the test output.I'm not sure what purpose this
console.log
serves; but I am happy to contribute a PR in case you have suggestions for what can be done to reduce the noise.The text was updated successfully, but these errors were encountered: