2322 - Type [something] is not assignable to type [something]. (occurs 3 times)
❌ Error in index.ts:6:0:
Type 'string' is not assignable to type 'number'.
❌ Error in index.ts:7:0:
Type 'string' is not assignable to type 'number'.
❌ Error in stories/blog/post.stories.tsx:46:2:
Type '(args: { title: string; author: string; date: string; content: string; authorImage: string; liked: boolean; likeCallback: (likedNow: boolean) => void; }, { loaded: { post } }: { loaded: { post: SanityPost; }; }) => Element' is not assignable to type 'ArgsStoryFn<ReactRenderer, { title: string; author: string; date: string; content: string; authorImage: string; liked: boolean; likeCallback: (likedNow: boolean) => void; }>'.
Types of parameters '__1' and 'context' are incompatible.
Type 'StoryContext<ReactRenderer, { title: string; author: string; date: string; content: string; authorImage: string; liked: boolean; likeCallback: (likedNow: boolean) => void; }>' is not assignable to type '{ loaded: { post: SanityPost; }; }'.
Types of property 'loaded' are incompatible.
Property 'post' is missing in type 'Record<string, any>' but required in type '{ post: SanityPost; }'.
Jest Errors
There is 1 failing Jest test.
Failing test:
❌ string reversing function reverses strings can reverse 'hello' (within "string reversing function reverses strings") (string_functions.test.ts:13:5) failed with
Error: expect(received).toEqual(expected) // deep equality
Expected: "olleh"
Received: "oleh"
Storybook Errors
There is 1 failing Storybook test.
Failing test:
❌ Post > LikeTest > play-test (stories/blog/post.stories.tsx) failed with
TypeScript Errors
There are 3 TypeScript errors.
1 is in stories. 0 are in tests.
The most common error types are:
❌ Error in
index.ts:6:0
:❌ Error in
index.ts:7:0
:❌ Error in
stories/blog/post.stories.tsx:46:2
:Jest Errors
There is 1 failing Jest test.
Failing test:
❌ string reversing function reverses strings can reverse 'hello' (within "string reversing function reverses strings") (
string_functions.test.ts:13:5
) failed withStorybook Errors
There is 1 failing Storybook test.
Failing test:
❌ Post > LikeTest > play-test (
stories/blog/post.stories.tsx
) failed with