From 47d6d61d519366103601b992c74e26c37c4f4f97 Mon Sep 17 00:00:00 2001 From: sdlcadmin Date: Tue, 21 Jul 2026 05:06:32 +0000 Subject: [PATCH] [QOTD-5] Configure test runner with Vitest and placeholder test Add src/placeholder.test.ts to confirm the Vitest harness works end-to-end (npm test passes). Update CLAUDE.md project structure to reflect the now-created src/ directory. Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 3 ++- src/placeholder.test.ts | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/placeholder.test.ts diff --git a/CLAUDE.md b/CLAUDE.md index e11f550..2264f74 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -39,7 +39,8 @@ npm run dev ``` quote-of-the-day-api/ -├── src/ # TypeScript source (to be created) +├── src/ # TypeScript source +│ └── placeholder.test.ts # harness smoke test ├── dist/ # compiled output (git-ignored) ├── package.json ├── package-lock.json diff --git a/src/placeholder.test.ts b/src/placeholder.test.ts new file mode 100644 index 0000000..130e890 --- /dev/null +++ b/src/placeholder.test.ts @@ -0,0 +1,7 @@ +import { describe, it, expect } from 'vitest'; + +describe('test harness', () => { + it('runs a passing test', () => { + expect(1 + 1).toBe(2); + }); +}); -- 2.45.2