mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-19 00:10:00 +00:00
test(libraries): index the refreshed node's children safely (#3324)
The refresh test from #3317 failed pnpm typecheck under noUncheckedIndexedAccess; it now uses optional access at each index.
This commit is contained in:
@@ -53,7 +53,7 @@ describe("External Libraries refresh", () => {
|
||||
results.push([rust("0.8.0")]);
|
||||
await executeAction("libraries.reload");
|
||||
await vi.waitFor(() =>
|
||||
expect(useProjectViewRoots.getState().roots.get("externalLibraries")?.children?.[0].children?.[0].label).toBe(
|
||||
expect(useProjectViewRoots.getState().roots.get("externalLibraries")?.children?.[0]?.children?.[0]?.label).toBe(
|
||||
"itoa 0.8.0",
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user