aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures
Commit message (Collapse)AuthorAgeFilesLines
* test(e2e): fix broken Cypress testsArmand Philippot2023-12-143-19/+274
| | | | | | | | Since #93db24b MSW is used in Cypress tests to intercept requests. Some tests relied on WordPress data so it becames broken. Tests are now successful but there are still some issues with hydration because all GraphQL requests are not intercepted and data are mixed between WordPress and fixtures.
* test(services): add tests for createComment mutationArmand Philippot2023-12-111-0/+31
| | | | | * add Jest test * add a Cypress test in article pages spec
* refactor(hooks): replace useGithubApi with useGithubRepoMetaArmand Philippot2023-12-072-0/+31
| | | | | | | | * 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 Blog pagesArmand Philippot2023-12-041-2/+2
| | | | | | | | | | * replace usePostsList with useArticlesList to keep names coherent * remove useIsMounted hook * rewrite useRedirection hook * add redirect in getStaticProps to avoid unecessary fetching * move Pagination component in a noscript tag * use hooks to refresh thematics and topics lists * complete Cypress tests
* fix(services,types): make queries and types coherent for TopicArmand Philippot2023-11-282-0/+119
| | | | | | * 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-0/+115
| | | | | | * 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-282-0/+105
|
* test(services): add tests for posts fetchersArmand Philippot2023-11-282-0/+178