Version: 23.1.0
This documentation is for Taquito version 23.1.0 and is no longer being updated. Some information may be outdated. View the latest version .
Ledger tests
Written by Roxane Letourneau
The Ledger Signer’s integration tests are disabled by default because they require having a Ledger Device connected to your computer.
Steps to run the tests
-
Set up your Ledger device with this mnemonic phrase:
**1-prefer 2-wait 3-flock 4-brown 5-volume 6-recycle 7-scrub 8-elder 9-rate 10-pair 11-twenty 12-giant ** -
Open
Tezos Wallet appon your Ledger device. -
Remove
./ledger-signer.spec.tsfrom"testPathIgnorePatterns"in the package.json. -
If you only want to run Ledger integration tests, use this command:
npm run test ledger-signer.spec.ts -
As the tests include operations such as transfer of token and contract origination, the tests will take some time to complete. You will be prompt on the Ledger to confirm the operations.
Failing tests
There is also a set of integration tests used to verify the behavior when the user declines the Ledger’s prompt.
To run these tests, you need to:
- Open
Tezos Wallet appon your Ledger device. - Remove
./ledger-signer-failing-tests.spec.tsfrom"testPathIgnorePatterns"in the package.json. - If you only want to run these tests, use this command:
npm run test ledger-signer-failing-tests.spec.ts - You will need to decline all Ledger prompts.