Skip to content

Commit d56e2aa

Browse files
alexandre-mrtclaude
andcommitted
test: add package version tests
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f4625b0 commit d56e2aa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/version.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { describe, expect, test } from "bun:test";
2+
3+
describe("App version", () => {
4+
test("version is semver", () => {
5+
const pkg = require("../package.json");
6+
expect(pkg.version).toMatch(/^\d+\.\d+\.\d+$/);
7+
});
8+
9+
test("name is zerodrop", () => {
10+
const pkg = require("../package.json");
11+
expect(pkg.name).toBe("zerodrop");
12+
});
13+
});

0 commit comments

Comments
 (0)