mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-20 22:28:30 +01:00
@suite-common/test-utils
This package defines mocks for TrezorConnect to be shared between more packages that use these mocks in their tests.
Usage and configuration
- add
@suite-common/test-utilsto a project dependencies - import mocks in your tests or fixtures
import { testMocks } from '@suite-common/test-utils';
- use it
testMocks.getWalletAccount({
deviceState: '7dcccffe70d8bb8bb28a2185daac8e05639490eee913b326097ae1d73abc8b4f',
descriptor:
'zpub6rszzdAK6RuafeRwyN8z1cgWcXCuKbLmjjfnrW4fWKtcoXQ8787214pNJjnBG5UATyghuNzjn6Lfp5k5xymrLFJnCy46bMYJPyZsbpFGagT',
symbol: 'btc',
});
See the package @suite-common/wallet-utils and its tests for an example configuration.