Fixhancement: more log viewer improvements (#11426)

This commit is contained in:
shamoon 2025-11-21 15:52:12 -08:00 committed by GitHub
parent a96db50b0a
commit 93338a0a82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 64 additions and 26 deletions

View file

@ -145,6 +145,10 @@ HTMLCanvasElement.prototype.getContext = <
typeof HTMLCanvasElement.prototype.getContext
>jest.fn()
if (!HTMLElement.prototype.scrollTo) {
HTMLElement.prototype.scrollTo = jest.fn()
}
jest.mock('uuid', () => ({
v4: jest.fn(() =>
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (char: string) => {