• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / frontend / 8937138713
40%

Build:
DEFAULT BRANCH: master
Ran 03 May 2024 09:48AM UTC
Jobs 1
Files 555
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 May 2024 09:44AM UTC coverage: 32.731% (-0.6%) from 33.301%
8937138713

push

github

web-flow
Migrate to Redux Toolkit part 7 (#2971)

* Migrate `evalStory` handler to Stories Saga

* Add Redux utils

Originally done in f1cf593ac.

Amended to fix some bugs with types.

---------

Co-authored-by: Lee Yi <leeyi45@gmail.com>

* Migrate some stories actions to use helper

Type errors will be fixed later.

* Migrate more stories actions to use helper

* Fix old reducer/actions helper compatibility issues

* Migrate new stories users handler to BackendSaga

Done to align with where the action creator is located.

* Migrate StoriesSaga to use helper

Original implementation in bbf4f090e.

Adapted to match current state of codebase.

---------

Co-authored-by: Lee Yi <leeyi45@gmail.com>

* Fix tests

* Fix compile errors

Also added a TODO for a testing util.

* Remove unnecessary rootReducer creator

* Fix combineSagaHandlers

* Migrate SessionActions to use helper

Some are left unmigrated to preserve the readability of the diff.

* Remove old session types

* Update tests and non-related sagas

Only updated sagas that require a simple fix of the imported action
types. Remaining sagas will be done in a later commit.

* Fix SessionActions compatibility with ActionsHelper

* Comment out most of mock backend saga

To minimise potentially unnecessary development effort while pending
removal decision outcome. Only commented handlers that are incompatible
with the type changes.

* Fix SessionReducer tests

* Use action creator in components

Use the action creator instead of creating the action object manually to
enforce abstraction.

* Migrate BackendSaga to use new helpers

Intentionally done in a very specific way, mixing new and old code
styles, in order to keep the diff legible for such a large migration.
Further refactoring will be done in the future.

* Update backend saga tests

* Remove duplicate action types... (continued)

1919 of 6894 branches covered (27.84%)

Branch coverage included in aggregate %.

196 of 423 new or added lines in 13 files covered. (46.34%)

5 existing lines in 1 file now uncovered.

5146 of 14691 relevant lines covered (35.03%)

20.98 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
0.0
0.0% src/commons/achievement/AchievementOverview.tsx
3
0.0
0.0% src/commons/achievement/AchievementView.tsx
10
46.67
src/commons/redux/utils.ts
12
39.13
-34.94% src/features/stories/StoriesActions.ts
17
1.61
-9.68% src/commons/sagas/StoriesSaga.ts
18
77.11
-13.49% src/commons/application/actions/SessionActions.ts
22
13.08
0.0% src/commons/mocks/BackendMocks.ts
143
43.14
-2.66% src/commons/sagas/BackendSaga.ts

Uncovered Existing Lines

Lines Coverage ∆ File
5
43.14
-2.66% src/commons/sagas/BackendSaga.ts
Jobs
ID Job ID Ran Files Coverage
1 8937138713.1 03 May 2024 09:48AM UTC 555
32.73
GitHub Action Run
Source Files on build 8937138713
  • Tree
  • List 555
  • Changed 20
  • Source Changed 0
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 637437f5 on github
  • Prev Build on master (#8936341133)
  • Next Build on master (#8959899390)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc