-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
All test cases don't pass.
To Replicate:
npm run npm run test
or npm run test:integration
and npm run test:unit
results in the following:
This is because of env file is not being read to provide the the mnemonics.
Issue and suggested Solution:
- To read the env variables from a .env file a
dotenv
dev dependency is required or an env variables file to be read viaprocess.env.
Once this dev dependency is added it will need to configured in jest or in photon-lib/__tests__/setup.js
- Once env file is configured and available, following variables will be needed in the .env file:
MNEMONICS_COBO
MNEMONICS_COLDCARD
HD_MNEMONIC_BIP84
HD_MNEMONIC
FAULTY_ZPUB
HD_MNEMONIC_BIP49
HD_MNEMONIC_BIP49_MANY_TX
- Adding the above will ensure all env variables required for running test cases are available HOWEVER the test cases expect specific mnemonics, the test cases have been written to pass only with specific mnemonics for example HD_MNEMONIC_BIP49_MANY_TX should be a mnemonic with a 107 transactions and a total balance of 51432
There could be some other instances where specific values are required.
Also the hardcoded peers might need to be updated as well in case this is an issue.
If all the test cases were passing before then It would be great if someone who has worked on the project before can share a env file which works with the test cases.
Metadata
Metadata
Assignees
Labels
No labels