create-bhvr
Version:
Create a new bhvr project
24 lines (23 loc) • 769 B
JavaScript
import { describe, it, expect } from "bun:test";
describe("TypeScript types", () => {
it("should define correct type structures", () => {
// Test that types can be instantiated correctly
const templateInfo = {
branch: "main",
description: "Test template",
};
const options = {
projectName: "test-project",
linter: "biome",
};
const result = {
projectName: "test-project",
gitInitialized: true,
dependenciesInstalled: false,
template: "default",
};
expect(templateInfo.branch).toBe("main");
expect(options.linter).toBe("biome");
expect(result.projectName).toBe("test-project");
});
});