Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore console.error spy between tests (#5562)
# Motivation #5553 added 2 tests that produce `console.error()` output. They relied on a third test, that mocks out `console.error` to be run first so that the logging is ignored. So these tests fail when run in isolation. And the third test didn't even need `console.error` to be mocked out. # Changes 1. Restore and recreate the `console.error` spy before each test. 2. Remove mocking `console.error` from the test that doesn't need it. 3. Add mocking `console.error` to the tests that do need it. # Tests Tests only # Todos - [ ] Add entry to changelog (if necessary). not necessary
- Loading branch information