test: tighten sdk alias missing-subpath assertion

This commit is contained in:
Peter Steinberger
2026-05-09 01:27:24 +01:00
parent 65b490c7cd
commit f9814cc7de

View File

@@ -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({