aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures/wp-posts.fixture.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-12-01 19:34:58 +0100
committerArmand Philippot <git@armandphilippot.com>2023-12-04 19:00:04 +0100
commit53b63ac27c2275262db9a04be02210a3287aa71d (patch)
tree814968e10cad25e1b34ab251de42ac5ecb82b346 /tests/fixtures/wp-posts.fixture.ts
parent11e3ee75fcab0ab54b2bc1713a402c5cc3070c2d (diff)
refactor(pages): refine Blog pages
* 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
Diffstat (limited to 'tests/fixtures/wp-posts.fixture.ts')
-rw-r--r--tests/fixtures/wp-posts.fixture.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fixtures/wp-posts.fixture.ts b/tests/fixtures/wp-posts.fixture.ts
index a1b1e4a..7adc928 100644
--- a/tests/fixtures/wp-posts.fixture.ts
+++ b/tests/fixtures/wp-posts.fixture.ts
@@ -1,6 +1,6 @@
import type { WPPost } from '../../src/types';
-export const wpPostsFixture: WPPost[] = [
+export const wpPostsFixture = [
{
acfPosts: null,
author: {
@@ -174,4 +174,4 @@ export const wpPostsFixture: WPPost[] = [
slug: '/post-4',
title: 'Post 4',
},
-];
+] satisfies WPPost[];