ubiquity / pay.ubq.fi

Generate and claim spender permits (EIP-2612)
https://pay.ubq.fi
8 stars 36 forks source link

Unit tests for virtual cards backend #271

Open EresDev opened 1 month ago

EresDev commented 1 month ago

The tests with this repository are e2e tests. That's how I started the virtual cards feature and used e2e tests. As the feature is getting refined, I think it would be good idea to bring in unit tests for the backend functions. Cloudflare recommends vitest because backend functions are Cloudflare pages function. Along with the general advantages of unit tests over e2e tests, I see following reasons to have them.

ubiquibot[bot] commented 1 month ago

@EresDev, You are not allowed to add Time: <1 Week

ubiquibot[bot] commented 1 month ago
! No permission to set labels
hydroxylase commented 1 month ago

/start

ubiquibot-dev[bot] commented 1 month ago
! Please set your wallet address with the /wallet command first and try again.
hydroxylase commented 1 month ago

/wallet 0x229674f3db146E0AF0182b660F5c9232538E7e7b

ubiquibot-dev[bot] commented 1 month ago

+ Successfully registered wallet address
ubiquibot[bot] commented 1 month ago
+ Successfully registered wallet address
hydroxylase commented 1 month ago

/start

ubiquibot-dev[bot] commented 1 month ago
DeadlineThu, Aug 15, 9:00 AM UTC
Registered Wallet 0x229674f3db146E0AF0182b660F5c9232538E7e7b
Tips:
<ul>
<li>Use <code>/wallet 0x0000...0000</code> if you want to update your registered payment wallet address.</li>
<li>Be sure to open a draft pull request as soon as possible to communicate updates on your progress.</li>
<li>Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the task.</li>
<ul>
ubiquibot[bot] commented 1 month ago

DeadlineThu, Aug 15, 9:00 AM UTC
Registered Wallet 0x229674f3db146E0AF0182b660F5c9232538E7e7b
Tips:
ubiquibot[bot] commented 1 month ago
# No linked pull requests to close
pbkompasz commented 1 month ago

/start

ubiquity-os[bot] commented 1 month ago
DeadlineThu, Aug 29, 8:25 PM UTC
Registered Wallet 0x26BfbD8ED2B302ec2c2B6f063C4caF7abcB062e0
Tips:
<ul>
<li>Use <code>/wallet 0x0000...0000</code> if you want to update your registered payment wallet address.</li>
<li>Be sure to open a draft pull request as soon as possible to communicate updates on your progress.</li>
<li>Be sure to provide timely updates to us when requested, or you will be automatically unassigned from the task.</li>
<ul>