Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Testing: Add Unit Test coverage to core functions #581

Open
chrisli30 opened this issue Oct 29, 2020 · 1 comment
Open

Testing: Add Unit Test coverage to core functions #581

chrisli30 opened this issue Oct 29, 2020 · 1 comment
Labels
feature request Feature requests from the community

Comments

@chrisli30
Copy link
Contributor

From Brendan:

I suggest that for starters, any parts of rWallet that are not UI - i.e. do not touch react or react-native APIs - let's follow this process:

  1. identify which parts fall into this category
  2. refactor to extract them into their own spearate files or dirs within the project (applies only where these parts are within the UI code)
  3. write tests targeting these parts
  4. modularise by refactoring to extract these parts into a separate module (applies only where these parts are not already in their own module)

We need:

  1. First to set up the framework for testing pure Javascript code. We can use Mocha.
  2. Add test cases to utils functions in src/common
@chrisli30 chrisli30 added the feature request Feature requests from the community label Oct 29, 2020
@bguiz
Copy link

bguiz commented Oct 29, 2020

s/mocha/jest/

because: (1) more react-specific test helpers available (for future), and (2) built-in coverage

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
feature request Feature requests from the community
Projects
None yet
Development

No branches or pull requests

2 participants