-
Notifications
You must be signed in to change notification settings - Fork 0
fix: Phase 1 Critical Fixes - Test Suite and Source Maps #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -175,11 +175,14 @@ describe('Sidepanel App Integration', () => { | |
|
|
||
| const renderSidepanel = async () => { | ||
| const { SessionProvider } = await import('../../contexts/SessionContext'); | ||
| const { ThemeProvider } = await import('../../contexts/ThemeContext'); | ||
| await act(async () => { | ||
| render( | ||
| <SessionProvider> | ||
| <App /> | ||
| </SessionProvider> | ||
| <ThemeProvider> | ||
|
Comment on lines
177
to
+181
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new Useful? React with 👍 / 👎. |
||
| <SessionProvider> | ||
| <App /> | ||
| </SessionProvider> | ||
| </ThemeProvider> | ||
| ); | ||
| }); | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrapping
renderPopupinThemeProviderfixes the missing context, but the test’s mockedstoragestill lacksgetSetting/saveSettingwhileThemeProvidercalls both on mount (seeThemeContext.loadThemeat src/contexts/ThemeContext.tsx:41-71). When this render helper runs, those undefined mocks throw a TypeError before any assertions execute, so the integration suite will remain red. Add stubs for the theme storage methods or mock ThemeProvider itself to unblock the tests.Useful? React with 👍 / 👎.