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

Stop the composer being re-initialised when customSuggestionPatterns change #1027

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

langleyd
Copy link
Contributor

customSuggestionPatterns changing was causing the composer to be re-initialised.
This was causing tests in the react-sdk to be flakey as the input happens right after initialisation, and some characters were being lost.
Moving the setting of customSuggestionPatterns to it's own effect.

@langleyd langleyd added the Web label Jul 30, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.42%. Comparing base (270b70e) to head (3667fff).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1027      +/-   ##
==========================================
- Coverage   90.14%   89.42%   -0.73%     
==========================================
  Files         179      104      -75     
  Lines       21627    18152    -3475     
  Branches      292      291       -1     
==========================================
- Hits        19496    16232    -3264     
+ Misses       2128     1917     -211     
  Partials        3        3              
Flag Coverage Δ
uitests ?
uitests-ios ?
unittests 89.42% <100.00%> (+0.18%) ⬆️
unittests-ios ?
unittests-react 88.92% <100.00%> (-0.43%) ⬇️
unittests-rust 89.50% <ø> (ø)

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.

Copy link

sonarcloud bot commented Jul 30, 2024

@langleyd langleyd merged commit 7a76224 into main Jul 31, 2024
7 checks passed
@langleyd langleyd deleted the langleyd/web_fix_double_init branch July 31, 2024 09:44
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