mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 16:10:45 +00:00
test: tighten sdk alias missing-subpath assertion
This commit is contained in:
@@ -1269,7 +1269,14 @@ export const syntheticRuntimeMarker = {
|
||||
...buildPluginLoaderJitiOptions({}),
|
||||
tryNative: false,
|
||||
});
|
||||
expect(() => withoutAlias(copiedChannelRuntime)).toThrow();
|
||||
let loadError: unknown;
|
||||
try {
|
||||
withoutAlias(copiedChannelRuntime);
|
||||
} catch (error) {
|
||||
loadError = error;
|
||||
}
|
||||
expect(loadError).toBeInstanceOf(Error);
|
||||
expect((loadError as Error).message).toContain("outbound-send-deps");
|
||||
|
||||
const withAlias = createJiti(sourceLoaderBaseUrl, {
|
||||
...buildPluginLoaderJitiOptions({
|
||||
|
||||
Reference in New Issue
Block a user