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

iOS 6 - addBreadcrumb - logRNAction #61

Merged
merged 15 commits into from
Aug 14, 2024
Merged

Conversation

TheMutsi
Copy link
Collaborator

Goal

Refactor RN Action to use Spans

Add Breadcrumb in ios

@TheMutsi TheMutsi requested review from jpmunz and a team July 30, 2024 13:30
@TheMutsi TheMutsi marked this pull request as draft July 30, 2024 13:30
packages/action-tracker/src/index.ts Outdated Show resolved Hide resolved
packages/action-tracker/src/index.ts Outdated Show resolved Hide resolved
packages/action-tracker/src/index.ts Outdated Show resolved Hide resolved
@TheMutsi TheMutsi changed the title WIP - iOS 6 - addBreadcrumb - logRNAction iOS 6 - addBreadcrumb - logRNAction Jul 30, 2024
@TheMutsi TheMutsi marked this pull request as ready for review July 30, 2024 21:07
@TheMutsi TheMutsi requested a review from jpmunz July 30, 2024 21:07
packages/core/ios/RNEmbrace/EmbraceManager.swift Outdated Show resolved Hide resolved
packages/action-tracker/src/index.ts Outdated Show resolved Hide resolved
@TheMutsi TheMutsi requested a review from jpmunz August 9, 2024 17:14
@TheMutsi TheMutsi requested a review from jpmunz August 13, 2024 00:41
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

Attention: Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.15%. Comparing base (4a38ef5) to head (7ce1d24).
Report is 1 commits behind head on 5.0.

Files Patch % Lines
packages/action-tracker/src/index.ts 90.90% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              5.0      #61      +/-   ##
==========================================
- Coverage   78.46%   78.15%   -0.31%     
==========================================
  Files          28       28              
  Lines        1221     1227       +6     
  Branches       99       98       -1     
==========================================
+ Hits          958      959       +1     
- Misses        263      268       +5     
Files Coverage Δ
packages/core/src/index.ts 91.15% <100.00%> (ø)
packages/action-tracker/src/index.ts 76.66% <90.90%> (-15.00%) ⬇️

// TODO uncomment the expect once the method is implemented
// expect(mockSetUserAsPayer).toHaveBeenCalled();
const promiseToResolve = setUserAsPayer();
jest.runAllTimers();
Copy link
Contributor

Choose a reason for hiding this comment

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

jest.runAllTimers(); calls shouldn't be needed here

const result = await promiseToResolve;

expect(mockSetUserAsPayer).toHaveBeenCalled();
expect(result).toBe(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

there's not much value in asserting this since it's just the value returned from the mock in this test file

@TheMutsi TheMutsi merged commit 363f001 into 5.0 Aug 14, 2024
1 check passed
@TheMutsi TheMutsi deleted the ios-6-add-breadcrumb-logrnaction branch August 14, 2024 18:45
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.

2 participants