Skip to content

Commit e2dc735

Browse files
committed
test(packagejson): add tests for partial objects
1 parent 5cbff11 commit e2dc735

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/types.test-d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ test("types", () => {
77
{},
88
{ name: "foo" },
99
{ version: "1.0.0" },
10+
// Partial objects
11+
{
12+
bugs: {},
13+
bin: {},
14+
dependencies: {},
15+
devDependencies: {},
16+
repository: { type: "", url: "" }, // TODO: should empty strings be allowed?
17+
exports: {},
18+
imports: {},
19+
typesVersions: {},
20+
publishConfig: {},
21+
},
1022
// Exports field
1123
{ exports: "./index.mjs" },
1224
{ exports: {} },

0 commit comments

Comments
 (0)