Update readme.md to include project overview, setup instructions, directory structure, and usage with Docker for Node + TypeScript project.
Some checks failed
ci / build-test-pack (push) Has been cancelled

This commit is contained in:
2025-08-10 01:43:28 +08:00
parent 34637ef77a
commit 26a36b197e
13 changed files with 220 additions and 0 deletions

16
tests/Greeter.test.ts Normal file
View File

@@ -0,0 +1,16 @@
import { describe, it, expect } from "vitest";
import { Greeter } from "../src/core/Greeter";
describe("Greeter", () => {
it("greets with default prefix", () => {
const greeter = new Greeter();
expect(greeter.greet("Alice")).toBe("Hello, Alice!");
});
it("trims name and handles empty name", () => {
const greeter = new Greeter("Hi");
expect(greeter.greet(" ")).toBe("Hi, World!");
});
});