Skip to content

Conversation

fbeaudoincoveo
Copy link
Contributor

This new util will allow us to mock the console in a consistent way in our component tests, and get rid of the global console.error mock we're currently doing in atomic/vitest-utils/setup.ts.

The util spies on the console error, log, and warn methods, and by default uses a blank implementation to keep the logs clean (we can pass loud: true to use the original implementations).

https://coveord.atlassian.net/browse/KIT-5115

@developer-experience-bot
Copy link
Contributor

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 255.5 255.5 0
commerce 369.3 369.3 0
search 427 427 0
insight 418.2 418.2 0
recommendation 266.3 266.3 0
ssr 421.4 421.4 0
ssr-commerce 386.4 386.4 0
ssr-commerce-next 387.7 387.7 0
ssr-next 422 422 0

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

Successfully merging this pull request may close these issues.

1 participant