Skip to content

Commit 5078d1f

Browse files
committed
fix: update ContributorsPage empty fallback test mocks to fix CI
1 parent 2ef46a3 commit 5078d1f

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

app/contributors/page.empty-fallback.test.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,19 @@ vi.mock('gsap/ScrollTrigger', () => ({
4242

4343
vi.mock('framer-motion', () => ({
4444
motion: {
45-
div: (props: any) => <div {...props}>{props.children}</div>,
46-
span: (props: any) => <span {...props}>{props.children}</span>,
47-
p: (props: any) => <p {...props}>{props.children}</p>,
45+
div: 'div',
46+
span: 'span',
47+
p: 'p',
48+
h1: 'h1',
49+
h2: 'h2',
50+
h3: 'h3',
51+
h4: 'h4',
52+
h5: 'h5',
53+
h6: 'h6',
54+
section: 'section',
55+
a: 'a',
56+
button: 'button',
57+
img: 'img',
4858
},
4959
AnimatePresence: ({ children }: any) => <>{children}</>,
5060
useMotionValue: (initial: any) => ({ current: initial, set: vi.fn() }),

0 commit comments

Comments
 (0)