refactor utils #242
pull-request-flow.yml
on: pull_request
test-and-lint
/
lint
12s
test-and-lint
/
test
24s
test-and-lint
/
typecheck
20s
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.
|