Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 50b5e30

Browse files
committed
fix(inspector): bring back the actor inspector (#1174)
Closes FRONT-763 ### TL;DR Added actor inspector tests to the driver test suite to ensure inspector functionality works correctly across different drivers. ### What changed? - Added `runActorInspectorTests` to the driver test suite - Created a new test file `actor-inspector.ts` with comprehensive tests for both manager and actor inspectors - Enabled studio in the test runtime configuration to support inspector tests - Fixed a bug in the file system driver's `getActorsIterator` to check if the state directory exists - Fixed a validation issue in the manager inspector router to properly handle invalid limit parameters - Fixed URL path handling in the universal actor proxy to correctly handle leading slashes ### How to test? Run the driver test suite with: ``` pnpm test ``` The new tests verify: - Manager inspector functionality (ping, actor listing, actor creation, etc.) - Actor inspector functionality (state management, connections, events, RPCs) - Error handling for both inspectors ### Why make this change? The inspector functionality is a critical part of the developer experience, allowing users to debug and inspect actors. These tests ensure that inspector functionality works consistently across all drivers, improving reliability and preventing regressions.
1 parent 8b68d51 commit 50b5e30

File tree

5 files changed

+592
-7
lines changed

5 files changed

+592
-7
lines changed

packages/core/src/driver-test-suite/mod.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { runActorDriverTests } from "./tests/actor-driver";
1717
import { runActorErrorHandlingTests } from "./tests/actor-error-handling";
1818
import { runActorHandleTests } from "./tests/actor-handle";
1919
import { runActorInlineClientTests } from "./tests/actor-inline-client";
20+
import { runActorInspectorTests } from "./tests/actor-inspector";
2021
import { runActorMetadataTests } from "./tests/actor-metadata";
2122
import { runActorVarsTests } from "./tests/actor-vars";
2223
import { runManagerDriverTests } from "./tests/manager-driver";
@@ -119,6 +120,8 @@ export function runDriverTests(
119120
runRawHttpDirectRegistryTests(driverTestConfig);
120121

121122
runRawWebSocketDirectRegistryTests(driverTestConfig);
123+
124+
runActorInspectorTests(driverTestConfig);
122125
});
123126
}
124127
}
@@ -154,6 +157,10 @@ export async function createTestRuntime(
154157
const config: RunConfig = RunConfigSchema.parse({
155158
driver,
156159
getUpgradeWebSocket: () => upgradeWebSocket!,
160+
studio: {
161+
enabled: true,
162+
token: () => "token",
163+
},
157164
});
158165

159166
// Create router

0 commit comments

Comments
 (0)