reduxjs / rtk-github-issues-example

Source code for the Redux Toolkit Advanced Tutorial
214 stars 97 forks source link

Add tests to the repo #15

Closed tkrotoff closed 4 years ago

tkrotoff commented 4 years ago

Something like:

src/features/issuesList/IssuesList.tsx
src/features/issuesList/IssuesList.test.tsx
src/features/issuesList/IssuesListPage.tsx
src/features/issuesList/IssuesListPage.test.tsx
src/features/issuesList/issuesSlice.ts
src/features/issuesList/issuesSlice.test.ts
...

The most interesting is demonstrate how to test and mock specific RTK features like createSlice, createEntityAdapter...

markerikson commented 4 years ago

Appreciate the suggestion, but I'm not looking to add tests at the moment, for a few reasons: