Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: make dynamic links methods more reusable, for jumpstart #4995

Merged
merged 9 commits into from
Feb 29, 2024

Conversation

kathaypacific
Copy link
Collaborator

Description

As the title.

Test plan

n/a

Related issues

Backwards compatibility

Y

Network scalability

If a new NetworkId and/or Network are added in the future, the changes in this PR will:

  • Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)

Copy link

emerge-tools bot commented Feb 28, 2024

1 build had no size change

Name Version Download Change Install Change Approval
Celo (test)
org.celo.mobile.test
1.79.0 (144) 24.2 MB ⬆️ 534 B 60.3 MB - N/A

Celo (test) 1.79.0 (144)
org.celo.mobile.test

No changes to report


🛸 Powered by Emerge Tools

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 20 lines in your changes are missing coverage. Please review.

Project coverage is 85.44%. Comparing base (f9363d2) to head (e65a826).
Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4995      +/-   ##
==========================================
- Coverage   85.46%   85.44%   -0.03%     
==========================================
  Files         719      720       +1     
  Lines       29347    29432      +85     
  Branches     5091     5099       +8     
==========================================
+ Hits        25082    25148      +66     
- Misses       4026     4045      +19     
  Partials      239      239              
Files Coverage Δ
src/fiatExchanges/saga.ts 85.55% <ø> (-0.32%) ⬇️
src/invite/hooks.tsx 88.46% <100.00%> (ø)
src/redux/migrations.ts 97.25% <100.00%> (+<0.01%) ⬆️
src/redux/store.ts 79.36% <ø> (ø)
src/send/SendEnterAmount.tsx 93.61% <ø> (ø)
src/send/actions.ts 100.00% <100.00%> (ø)
src/send/selectors.ts 96.15% <100.00%> (+0.32%) ⬆️
src/send/types.ts 100.00% <ø> (ø)
src/send/utils.ts 93.54% <100.00%> (+0.21%) ⬆️
test/schemas.ts 89.69% <100.00%> (+0.03%) ⬆️
... and 6 more

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9363d2...e65a826. Read the comment docs.

import { createMockStore } from 'test/utils'
import Invite from './Invite'

jest.mock('src/analytics/ValoraAnalytics')
const mockShare = jest.spyOn(Share, 'share')
const mockedCreateDynamicLink = jest.spyOn(InviteUtils, 'createDynamicLink')
const mockedCreateDynamicLink = jest.spyOn(InviteUtils, 'createInviteLink')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const mockedCreateDynamicLink = jest.spyOn(InviteUtils, 'createInviteLink')
const mockedCreateInviteLink = jest.spyOn(InviteUtils, 'createInviteLink')

@MuckT MuckT enabled auto-merge February 28, 2024 23:15
auto-merge was automatically disabled February 28, 2024 23:53

Merge queue setting changed

@MuckT MuckT enabled auto-merge February 29, 2024 00:44
@MuckT MuckT disabled auto-merge February 29, 2024 01:34
@kathaypacific kathaypacific merged commit 6a3b4f4 into main Feb 29, 2024
16 checks passed
@kathaypacific kathaypacific deleted the kathy/jumpstart-link branch February 29, 2024 10:44
shottah pushed a commit to zed-io/kolektivo that referenced this pull request May 15, 2024
…lora-inc#4995)

### Description

As the title.

### Test plan

n/a

### Related issues

- Related to RET-993

### Backwards compatibility

Y

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [x] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)

---------

Co-authored-by: Tom McGuire <Mcgtom10@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants