Heuristic risk: Medium (2 pts)
This is a rule-based heuristic, not a probability and not a defect prediction. The risk label and the related-file list are separate signals.
1 of the 2 related file(s) absent from this PR have Tier A co-change support.
Not applicable: at least one Tier A related file is present, which scores instead.
0 non-test source file(s) changed, below the threshold of 4.
No non-test source file changed in this PR, so this signal does not apply.
No changed file has 3 or more direct importers in this PR's import context.
not evaluated: import cycles are only known for the pinned repository snapshot and this PR was analyzed at its own base commit.
Changed files (1)
Test files
View diff excerpt (16 lines)
diff --git a/tests/devtools.test.tsx b/tests/devtools.test.tsx
index a338f2a..1aa0e7d 100644
--- a/tests/devtools.test.tsx
+++ b/tests/devtools.test.tsx
@@ -1474,8 +1474,8 @@ describe('when create devtools was called multiple times with `name` option unde
subscribers.forEach((sub) => sub(action))
expect(api1.getState()).toStrictEqual(initialState1)
- expect(api1.getState()).toStrictEqual(initialState1)
- expect(api1.getState()).toStrictEqual(initialState1)
+ expect(api2.getState()).toStrictEqual(initialState2)
+ expect(api3.getState()).toStrictEqual(initialState3)
expect(connection1.init).toHaveBeenLastCalledWith(initialState1)
expect(connection2.init).toHaveBeenLastCalledWith(initialState2)
expect(connection3.init).toHaveBeenLastCalledWith(initialState3)
Related files not in this PR (2)
Files that historically change together with this PR's changed files in prior commits.
In history before this PR, 18 of the 28 commits that changed tests/devtools.test.tsx also changed src/middleware/devtools.ts. The other direction: 18 of the 49 commits that changed src/middleware/devtools.ts also changed tests/devtools.test.tsx. No direct import link was found between them at the PR base snapshot. One changed file in this PR points at it.
Lift 15.39: this file changes together with the changed file far more often than its overall change rate would suggest.
Snapshot code link: This PR was analyzed at its own base commit, not the pinned repository snapshot, so the snapshot code viewer is not available for it.
In history before this PR, 9 of the 28 commits that changed tests/devtools.test.tsx also changed tests/middlewareTypes.test.tsx. The other direction: 9 of the 40 commits that changed tests/middlewareTypes.test.tsx also changed tests/devtools.test.tsx. No direct import link was found between them at the PR base snapshot. One changed file in this PR points at it.
Lift 9.43: this file changes together with the changed file far more often than its overall change rate would suggest.
Snapshot code link: This PR was analyzed at its own base commit, not the pinned repository snapshot, so the snapshot code viewer is not available for it.
Import context (up to two levels)
none found (only package imports)
Suggested tests (filename heuristic)
The filename heuristic could not identify any matching test files.
Prepared review
Prepared • Stored text from offline analysis, not a live AI responseDiff-grounded observations
“expect(api2.getState()).toStrictEqual(initialState2)”
The test asserts that api2.getState() matches initialState2.
“expect(connection3.init).toHaveBeenLastCalledWith(initialState3)”
An existing assertion checks that the third connection receives initialState3.