Skip to content

Commit 8325547

Browse files
alexandre-mrtclaude
andcommitted
test: add package metadata validation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a75190d commit 8325547

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/pkg.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { describe, expect, test } from "bun:test";
2+
3+
describe("Package metadata", () => {
4+
test("has required fields", () => {
5+
const pkg = require("../package.json");
6+
expect(pkg.name).toBe("zerodrop");
7+
expect(pkg).toHaveProperty("scripts");
8+
expect(pkg.scripts).toHaveProperty("dev");
9+
expect(pkg.scripts).toHaveProperty("build");
10+
});
11+
});

0 commit comments

Comments
 (0)