Fixing typecheck + storybook:modules!
This commit is contained in:
Charles Bochet
2024-04-30 17:54:07 +02:00
committed by GitHub
parent 1b2ed80c1c
commit ccd1100773
14 changed files with 73 additions and 20 deletions

View File

@ -10,6 +10,7 @@ const calendarEvents: CalendarEvent[] = [
isFullDay: false,
startsAt: '2024-02-17T21:45:27.822Z',
visibility: 'METADATA',
__typename: 'CalendarEvent',
},
{
id: '5678',
@ -17,6 +18,7 @@ const calendarEvents: CalendarEvent[] = [
isFullDay: false,
startsAt: '2024-02-18T21:43:27.754Z',
visibility: 'SHARE_EVERYTHING',
__typename: 'CalendarEvent',
},
{
id: '91011',
@ -24,6 +26,7 @@ const calendarEvents: CalendarEvent[] = [
isFullDay: true,
startsAt: '2024-02-19T22:05:27.653Z',
visibility: 'METADATA',
__typename: 'CalendarEvent',
},
{
id: '121314',
@ -31,6 +34,7 @@ const calendarEvents: CalendarEvent[] = [
isFullDay: true,
startsAt: '2024-02-20T23:15:23.150Z',
visibility: 'SHARE_EVERYTHING',
__typename: 'CalendarEvent',
},
];

View File

@ -4,7 +4,13 @@ import { Comment } from '@/activities/types/Comment';
export const mockComment: Pick<
Comment,
'id' | 'author' | 'createdAt' | 'body' | 'updatedAt' | 'activityId'
| 'id'
| 'author'
| 'createdAt'
| 'body'
| 'updatedAt'
| 'activityId'
| '__typename'
> = {
id: 'fake_comment_1_uuid',
body: 'Hello, this is a comment.',
@ -19,11 +25,18 @@ export const mockComment: Pick<
createdAt: DateTime.fromFormat('2021-03-12', 'yyyy-MM-dd').toISO() ?? '',
updatedAt: DateTime.fromFormat('2021-03-13', 'yyyy-MM-dd').toISO() ?? '',
activityId: 'fake_activity_1_uuid',
__typename: 'Comment',
};
export const mockCommentWithLongValues: Pick<
Comment,
'id' | 'author' | 'createdAt' | 'body' | 'updatedAt' | 'activityId'
| 'id'
| 'author'
| 'createdAt'
| 'body'
| 'updatedAt'
| 'activityId'
| '__typename'
> = {
id: 'fake_comment_2_uuid',
body: 'Hello, this is a comment. Hello, this is a comment. Hello, this is a comment. Hello, this is a comment. Hello, this is a comment. Hello, this is a comment.',
@ -38,4 +51,5 @@ export const mockCommentWithLongValues: Pick<
createdAt: DateTime.fromFormat('2021-03-12', 'yyyy-MM-dd').toISO() ?? '',
updatedAt: DateTime.fromFormat('2021-03-13', 'yyyy-MM-dd').toISO() ?? '',
activityId: 'fake_activity_1_uuid',
__typename: 'Comment',
};