ckb-js / nexus

A UTxO friendly wallet extension for CKB
MIT License
15 stars 11 forks source link

E2E for public RPC and protocols #254

Open IronLu233 opened 1 year ago

IronLu233 commented 1 year ago

Motivation and background

In previous two PRs, the code have serious bug. Although their unit tests are very covered well.

These bugs is escape from unit test, because in the business logic, it should invoke multiple APIs. However unit test only test single method, missing their interactions.

To prevent this root cause of bug. All exported RPC and protocols should be tested in E2E cases.

Tasks