digitalcredentials / learner-credential-wallet

Learner Credential Wallet is a cross-platform iOS and Android mobile application for storing and sharing digital learner credentials.
https://lcw.app
MIT License
54 stars 28 forks source link

feat: add jest and a simple test #541

Closed vonovak closed 8 months ago

vonovak commented 8 months ago

This adds jest to the repo and the GH action. While Jest isn't really the tool of choice for other parts of the JS ecosystem, in React Native it's the standard.

there's a little todo in app/lib/encode.unit.test.ts that someone more knowledgeable of the code base could answer. I'm a little unsure about why the encodeQueryParams function is even needed. If someone could share some deep links that the app works with, that would be helpful.

dmitrizagidulin commented 8 months ago

@vonovak thank you for fixing the existing linting errors!