> @pokt-foundation/pocketjs-transaction-builder@2.2.0 test /data/src/pocket-js/packages/transaction-builder > pnpm jest PASS tests/transactions.test.ts TransactionBuilder Tests ✓ Creates a new TransactionBuilder with the provided params (1 ms) ✓ Can switch the chainID on the fly TransactionBuilder:Messages:HappyPaths ✓ General happy path: creates properly formatted messages without errors (4 ms) TransactionBuilder:Messages:UnhappyPaths:MsgProtoSend ✓ Invalid case: same addresses (13 ms) ✓ Invalid case: amount < 0 (1 ms) ✓ Invalid case: invalid input for amount TransactionBuilder:Messages:UnhappyPaths:MsgProtoAppStake ✓ Invalid case: amount to stake too small (below 1 POKT) (1 ms) ✓ Invalid case: chains empty ✓ Invalid case: invalid input for amount TransactionBuilder:Messages:UnhappyPaths:MsgProtoNodeStakeTx ✓ Invalid case: amount to stake too small (1 ms) ✓ Invalid case: chains empty ✓ Invalid case: invalid input for amount TransactionBuilder:Messages:UnhappyPaths:MsgProtoGovChangeParam ✓ Invalid case: paramKey empty ✓ Invalid case: paramValue empty (1 ms) ✓ Invalid case: invalid governance param without override TransactionBuilder:Messages:UnhappyPaths:MsgProtoGovDAOTransfer ✓ Invalid case: from address empty (3 ms) ✓ Invalid case: from and to the same (1 ms) ✓ Invalid case: amount < 0 ✓ Invalid case: amount not number ✓ Invalid case: invalid action (1 ms) ✓ Invalid case: action is transfer and toAddress is empty TransactionBuilder:Messages:UnhappyPaths:MsgProtoGovUpgrade ✓ Invalid case: from address empty (1 ms) ✓ Invalid case: height is zero for gov upgrade raw ✓ Invalid case: version is empty for gov upgrade raw (1 ms) ✓ Invalid case: height is not 1 for feature gov upgrade raw ✓ Invalid case: features was provided for version gov upgrade raw (1 ms) ✓ Invalid case: features is empty for feature gov upgrade raw ✓ Invalid case: upgrade feature with malformed feature tuple ✓ Invalid case: upgrade feature with malformed height (1 ms) TransactionBuilder:createTransaction:HappyPath ✓ Creates a RawTxRequest for MsgProtoSend (2 ms) ✓ Creates a RawTxRequest for MsgProtoAppStake ✓ Creates a RawTxRequest for MsgProtoAppUnstake (1 ms) ✓ Creates a RawTxRequest for MsgProtoNodeStakeTx (1 ms) ✓ Creates a RawTxRequest for MsgProtoNodeUnstake (1 ms) ✓ Creates a RawTxRequest for MsgProtoNodeUnjail ✓ Creates a RawTxRequest for MsgProtoGovChangeParam (1 ms) ✓ Creates a RawTxRequest for MsgProtoGovDAOTransfer (1 ms) ✓ Creates a RawTxRequest for MsgProtoGovUpgrade (1 ms) Test Suites: 1 passed, 1 total Tests: 38 passed, 38 total Snapshots: 0 total Time: 1.828 s, estimated 2 s Ran all test suites.