Page MenuHomePhabricator

[Cashtab] Add canvas mock to prevent annoying jest debug logs
ClosedPublic

Authored by bytesofman on Nov 6 2024, 00:53.

Details

Summary

Most cashtab integration tests get this logging because canvas is not mocked in jest environment. It does not need to be for any test reason except that the logs are distracting and make it harder to find real problems.

Add the mock to suppress these logs.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cashtab-jest-patch
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31025
Build 61553: Build Diffcashtab-tests
Build 61552: arc lint + arc unit