Workshop outcome

This commit is contained in:
2026-06-20 15:46:25 +01:00
commit b9ea424f4e
9 changed files with 1738 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import { describe, it, expect } from "vitest";
import { greet } from "./greet.js";
describe("greet", () => {
it("returns a greeting for a given name", () => {
expect(greet("World")).toBe("Hello, World!");
});
});
+3
View File
@@ -0,0 +1,3 @@
export function greet(name: string): string {
return `Hello, ${name}!`;
}