No warnings when testing#592
Open
kneth wants to merge 5 commits into
Open
Conversation
Initialize activeTab state synchronously via lazy initializer instead of undefined, and remove redundant defaultValue prop from Radix Tabs Root. Eliminates the React warning in CrateTabsShad and SQLResults tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds autoResetPageIndex: false to prevent @tanstack/table-core from scheduling page-index resets via Promise.resolve() microtasks. Those deferred updates fired outside act() in synchronous tests, causing console warnings in SQLResultsTable and SQLResults test suites. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a console.error spy in beforeAll to filter the "trigger element and popup element should in same shadow root" warning emitted by @rc-component/trigger in jsdom. The warning is a React 19 passive effect timing issue (dev-mode only) and does not affect test outcomes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…oads Eliminates the jsdom 'Not implemented: navigation' error in tests by removing bare <a href="data:..."> elements from SQLResultsTable. Download is now triggered via URL.createObjectURL + a transient anchor, keeping large data payloads out of the DOM. Tests updated to verify Blob type; test/setup.ts gains URL and anchor-click mocks required by jsdom. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ct() warnings antd's static message/notification APIs use an internal `act` that defaults to a plain pass-through. In a React 19 test environment, this causes "not configured to support act(...)" warnings because state updates happen outside React's act scope. Wire antd's `actWrapper` to RTL's `act` (which sets IS_REACT_ACT_ENVIRONMENT=true) so all antd state updates are correctly batched. Using RTL's act rather than React's raw act is required because the IS_REACT_ACT_ENVIRONMENT flag must be set when act() fires or React still warns. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
#585 without GSD files.
Checklist
Link to issue this PR refers to:Relevant changes are reflected inCHANGES.md.Required Grand Central APIs are already merged.