We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dd8714 commit 60f4e6eCopy full SHA for 60f4e6e
lib/resolve-declaration-reference.test.ts
@@ -0,0 +1,30 @@
1
+import { fromPartial } from "@total-typescript/shoehorn";
2
+import { expect, test } from "vitest";
3
+import { resolveDeclarationReference } from "./resolve-declaration-reference";
4
+
5
+test("resolveDeclarationReference", () => {
6
+ expect(
7
+ resolveDeclarationReference(
8
+ fromPartial({
9
+ packageName: "foo",
10
+ memberReferences: [
11
12
+ memberIdentifier: fromPartial({
13
+ identifier: "bar",
14
+ }),
15
16
17
18
+ identifier: "baz",
19
20
21
+ ],
22
23
+ ),
24
+ ).toMatchInlineSnapshot(`
25
+ {
26
+ "declarationId": "bar.baz",
27
+ "pkgName": "foo",
28
+ }
29
+ `);
30
+});
0 commit comments