What you ask
Search Acme
billing
2
-
@devboxes we're about to rework the dunning schedule. can you add tests for how it behaves today first, and keep the code as it is?
-
#60 adds 14 tests for the dunning schedule, covering weekend due dates, the grace period, paused subscriptions and the final notice. Only tests changed, and they all pass.
Opened #60
What devboxes does
-
Read the code and its callers
- devboxes reads the code, everything that calls it and the tests it already has.
-
List today's behavior
- Then it writes down how the code behaves today, as inputs and the results they give.
-
Add the tests
- The new tests pass against the code as it is today.
- Only test files change, so the code itself stays exactly as it was.
-
-
Install dependencies
-
Test
-
Lint
-
-
Fix
- The tests pass.
-
Test again
-
Lint again
-
-
-
Publish
-
Review
What you get back
Cover the dunning schedule with tests #60
devboxes Bot reviewed 2 minutes ago View reviewed changes
All checks have passed
3 successful checks
- CI / Lint (pull_request) Details
- CI / Typecheck (pull_request) Details
- CI / Tests (pull_request) Details
This branch has no conflicts with the base branch
Merging can be performed automatically.
You can also merge this with the command line.
Files changed 1
-
test/dunning-schedule.test.ts+212 −0
Good for
Startups
devboxes Bot left a comment Author
Tests only. All 14 pass against today's code.