Skip to content

Commit 256e7ff

Browse files
github-actions[bot]Bill Chirico
andcommitted
fix(tests): add isDark and setTheme to PlaceholderScreen test mock
Align ThemeContext mock with the full contract to prevent future test failures when components access isDark or setTheme. Co-authored-by: Bill Chirico <undefined@users.noreply.github.com>
1 parent 13f8b85 commit 256e7ff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

__tests__/components/program/PlaceholderScreen.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ const mockTheme = {
2727
jest.mock('@/contexts/ThemeContext', () => ({
2828
useTheme: () => ({
2929
theme: mockTheme,
30+
isDark: false,
31+
setTheme: jest.fn(),
3032
}),
3133
}));
3234

0 commit comments

Comments
 (0)