Skip to content

Commit

Permalink
test(packagejson): add tests for partial objects
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 8, 2024
1 parent 5cbff11 commit e2dc735
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/types.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ test("types", () => {
{},
{ name: "foo" },
{ version: "1.0.0" },
// Partial objects
{
bugs: {},
bin: {},
dependencies: {},
devDependencies: {},
repository: { type: "", url: "" }, // TODO: should empty strings be allowed?
exports: {},
imports: {},
typesVersions: {},
publishConfig: {},
},
// Exports field
{ exports: "./index.mjs" },
{ exports: {} },
Expand Down

0 comments on commit e2dc735

Please sign in to comment.