Skip to content

refactor utils

refactor utils #242

Triggered via pull request April 13, 2024 22:11
Status Failure
Total duration 33s
Artifacts

pull-request-flow.yml

on: pull_request
test-and-lint  /  lint
12s
test-and-lint / lint
test-and-lint  /  test
24s
test-and-lint / test
test-and-lint  /  typecheck
20s
test-and-lint / typecheck
Fit to window
Zoom out
Zoom in

Annotations

4 errors
src/commands/referral/referralNew.test.ts > execute > should block adding referral code if the user already has one: src/commands/referral/referralNew.test.ts#L151
TypeError: mockGetOrCreateUser.mockResolvedValueOnce is not a function ❯ src/commands/referral/referralNew.test.ts:151:25
src/commands/referral/referralNew.test.ts > execute > should create a new referral code: src/commands/referral/referralNew.test.ts#L186
TypeError: mockGetOrCreateUser.mockResolvedValueOnce is not a function ❯ src/commands/referral/referralNew.test.ts:186:25
src/commands/referral/referralNew.test.ts > execute > should create a new referral code in 30 days from now when not given the expiry date: src/commands/referral/referralNew.test.ts#L244
AssertionError: expected "createReferralCode" to be called with arguments: [ CaptorMatcher{ …(4) } ] Received: Number of calls: 0 ❯ src/commands/referral/referralNew.test.ts:244:36
test-and-lint / test
Process completed with exit code 1.