aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msw
Commit message (Collapse)AuthorAgeFilesLines
* test(services): add tests for createComment mutationArmand Philippot2023-12-115-2/+76
| | | | | * add Jest test * add a Cypress test in article pages spec
* refactor(pages): refine Contact pageArmand Philippot2023-12-118-1/+88
| | | | | | | * 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-0720-66/+145
| | | | | | | | * 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-014-6/+16
| | | | | | | | | | | * 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-288-1/+191
| | | | | | * 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-288-2/+201
| | | | | | * 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-287-15/+141
|
* test(services): add tests for posts fetchersArmand Philippot2023-11-2811-1/+264
|
* test: add MSW to intercept GraphQL requestsArmand Philippot2023-11-279-0/+266