Skip to content

Title: feat: add lint, typecheck, and unit test steps to frontend CI#42

Merged
aji70 merged 1 commit into
MyFanss:mainfrom
Emeka000:yml
Jun 21, 2026
Merged

Title: feat: add lint, typecheck, and unit test steps to frontend CI#42
aji70 merged 1 commit into
MyFanss:mainfrom
Emeka000:yml

Conversation

@Emeka000

Copy link
Copy Markdown
Contributor

Body:

Summary
Closes #13

Added npm run typecheck (tsc --noEmit) and npm run test (Vitest) steps to .github/workflows/frontend-ci.yml, running between lint and build
Added "typecheck" and "test" scripts to package.json; installed vitest as a dev dependency
Created vitest.config.ts with path alias support (@/)
Added src/tests/smoke.test.ts — a passing smoke test that proves the CI test step runs
Documented required CI checks in README.md with a status badge and local fix instructions
Test plan
npm run lint passes with no errors
npm run typecheck passes with no type errors
npm run test passes (1 smoke test)
npm run build passes
Introducing an ESLint error in a PR causes CI to fail on the Lint step
Introducing a TypeScript type error causes CI to fail on the Type check step

@aji70 aji70 merged commit 1016db8 into MyFanss:main Jun 21, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Frontend CI Lint Step and Test Script Stub

2 participants