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

source-academy / frontend / 8400308590

23 Mar 2024 07:32AM UTC coverage: 36.273% (+0.01%) from 36.261%
8400308590

push

github

web-flow
Migrate to Redux Toolkit part 4 (#2843)

* Migrate Achievement actions to RTK

* Migrate Persistence actions to RTK

* Migrate remaining Stories actions to RTK

* Revert "Migrate Achievement actions to RTK"

This reverts commit 66d0f4ab8.

* Migrate some workspace reducers to new reducer

* Migrate more workspace reducers to new reducer

* Begin StoriesReducer migration

* Create new reducer using `createReducer` from RTK
* Migrate some reducers to new reducer

* Create own copy of ActionType helper

Facilitates the migration away from `typesafe-actions` package.

* Create and use `generateAction` function in tests

Part of migrating away from `typesafe-actions`.

* Migrate most Achievement actions to RTK

One remaining action creator is left to use the old library due to type
errors that are left to investigate in a future commit.

* Migrate FileSystemReducer to RTK

* Migrate AchievementReducer to RTK

* Update reducer typings

Done in preparation for migration to RTK v2 and Redux v5.

Also improves type safety of reducers.

* Fix type errors with reducer tests

Improves overall type-safety following the new reducer typings.

* Fix SessionReducer tests

* Fix format

1856 of 6009 branches covered (30.89%)

Branch coverage included in aggregate %.

67 of 86 new or added lines in 11 files covered. (77.91%)

4985 of 12851 relevant lines covered (38.79%)

22.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.22
/src/commons/workspace/WorkspaceReducer.ts


Source Not Available

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

© 2026 Coveralls, Inc