aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msw/schema
Commit message (Collapse)AuthorAgeFilesLines
* test(services): add tests for createComment mutationArmand Philippot2023-12-112-0/+22
| | | | | * add Jest test * add a Cypress test in article pages spec
* refactor(pages): refine Contact pageArmand Philippot2023-12-112-0/+24
| | | | | | | * remove next/router dependency * remove pageTitle since it is defined in MDX * reduce statements by grouping messages * mock response with MSW and add test for sendEmail
* refactor(hooks): replace useGithubApi with useGithubRepoMetaArmand Philippot2023-12-071-0/+17
| | | | | | | | * use GraphQL API instead of REST (the inconvenient however is that we now need an authorization token...) * move fetcher in services * add tests * mock response using MSW
* refactor(pages): refine Thematic pagesArmand Philippot2023-12-012-0/+2
| | | | | | | | | | | * add a table of contents (however posts heading are not included) * rename posts list section title * add a useThematic hook to refresh thematic contents * add a useThematicLists hook to refresh thematics list * add a `notIn` filter in thematics list fetcher to directly remove unwanted thematics * add Cypress tests
* fix(services,types): make queries and types coherent for TopicArmand Philippot2023-11-282-1/+46
| | | | | | * some nodes was missing in topicQuery * a node was mispelled in topicsListQuery * add tests for all topics fetchers
* fix(services,types): make coherent Thematic type and queryArmand Philippot2023-11-282-1/+46
| | | | | | * some nodes was queried but missing in the Thematic type and vice versa, it is now fixed * add tests for all thematics fetchers
* test(services): add tests for comments list fetcherArmand Philippot2023-11-284-14/+97
|
* test(services): add tests for posts fetchersArmand Philippot2023-11-282-0/+13
|
* test: add MSW to intercept GraphQL requestsArmand Philippot2023-11-278-0/+263