Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Fix lib type export #1013

Merged
merged 2 commits into from
Jul 17, 2024
Merged

Fix lib type export #1013

merged 2 commits into from
Jul 17, 2024

Conversation

langleyd
Copy link
Contributor

@langleyd langleyd commented Jul 10, 2024

TraceAction wasn't exported so the last release broke the renovate PR on react-sdk.

@codecov-commenter
Copy link

codecov-commenter commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.53%. Comparing base (cdb273c) to head (66d6640).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1013      +/-   ##
==========================================
- Coverage   90.32%   89.53%   -0.79%     
==========================================
  Files         177      104      -73     
  Lines       21173    17990    -3183     
  Branches      280      280              
==========================================
- Hits        19124    16107    -3017     
+ Misses       2046     1880     -166     
  Partials        3        3              
Flag Coverage Δ
uitests ?
uitests-ios ?
unittests 89.53% <100.00%> (+0.09%) ⬆️
unittests-ios ?
unittests-react 88.64% <100.00%> (-0.03%) ⬇️
unittests-rust 89.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -34,6 +34,7 @@ export default defineConfig({
'lib/types.ts',
'lib/constants.ts',
'lib/useListeners/types.ts',
'lib/useTestCases/types.ts',
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmm, why do we need to export a type used in test cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, its a bit weird that the function in question I think just returns this type so that we can unit test it.

At a high level you are right though, the app code shouldn't depend on the test code. I'll move the type to the app code to switch this around.

Copy link

sonarcloud bot commented Jul 17, 2024

@langleyd langleyd merged commit 034afd0 into main Jul 17, 2024
7 checks passed
@langleyd langleyd deleted the langleyd/fix_ts_type_export branch July 17, 2024 16:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants