Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide the "DevTools Extension is not available" in tests #157

Closed
MikeDabrowski opened this issue Mar 12, 2025 · 4 comments
Closed

Comments

@MikeDabrowski
Copy link
Contributor

I started using withDevtools and now my unit tests produce significant amount of useless info messages:

   'NgRx Toolkit/DevTools: Redux DevTools Extension is not available.'
   'NgRx Toolkit/DevTools: Redux DevTools Extension is not available.'
   'NgRx Toolkit/DevTools: Redux DevTools Extension is not available.'
   'NgRx Toolkit/DevTools: Redux DevTools Extension is not available.'

How do I disable that ?

For reference the place of origin of this message:

constructor() {
if (!this.#isBrowser) {
return;
}
const isToolkitAvailable = Boolean(window.__REDUX_DEVTOOLS_EXTENSION__);
if (!isToolkitAvailable) {
console.info(
'NgRx Toolkit/DevTools: Redux DevTools Extension is not available.'
);
}
}

@rainerhahnekamp
Copy link
Collaborator

Hey @MikeDabrowski, I think we can just remove that console output. Do you want to open a PR for that?

@MikeDabrowski
Copy link
Contributor Author

MikeDabrowski commented Mar 12, 2025 via email

@rainerhahnekamp
Copy link
Collaborator

Yes, I am sure. I added it with a much too strict mindset.

@rainerhahnekamp
Copy link
Collaborator

Fixed in #158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants