Skip to content

test: add unit tests generated by ToTheos#39

Open
ToTheos-Dev wants to merge 28 commits into
magicuidesign:mainfrom
ToTheos-Forks:totheos-tests/2026-05-20T04-22-20-568Z
Open

test: add unit tests generated by ToTheos#39
ToTheos-Dev wants to merge 28 commits into
magicuidesign:mainfrom
ToTheos-Forks:totheos-tests/2026-05-20T04-22-20-568Z

Conversation

@ToTheos-Dev
Copy link
Copy Markdown

AI-Generated Unit Tests

This PR adds AI-generated unit tests to improve coverage and ensure key functionality is tested.

Test coverage summary
Statements : 92.41% ( 195/211 )
Branches   : 87.5% ( 14/16 )
Functions  : 71.11% ( 32/45 )
Lines      : 97.98% ( 146/149 )

Coverage metrics generated by Jest, an open-source JavaScript testing framework.
Test files and commits
  • test: add config
  • test: add config
  • test: add config
  • test: add src/lib/utils.test.ts
  • test: add src/app/page.test.tsx
  • test: add src/app/blog/page.test.tsx
  • test: add src/app/blog/[slug]/page.test.tsx
  • test: add src/data/blog.test.ts
  • test: add src/data/resume.test.tsx
  • test: add src/components/mode-toggle.test.tsx
  • test: add src/components/magicui/dock.test.tsx
  • test: add src/components/magicui/blur-fade-text.test.tsx
  • test: add src/components/magicui/blur-fade.test.tsx
  • test: add src/components/hackathon-card.test.tsx
  • test: add src/components/project-card.test.tsx
  • test: add src/components/theme-provider.test.tsx
  • test: add src/components/resume-card.test.tsx
  • test: add src/components/navbar.test.tsx
  • test: add src/components/ui/separator.test.tsx
  • test: add src/components/ui/tooltip.test.tsx
  • test: add src/components/ui/avatar.test.tsx
  • test: add src/components/ui/card.test.tsx
  • test: add src/components/ui/button.test.tsx
  • test: add src/components/ui/badge.test.tsx
  • test: add src/components/icons.test.tsx
  • test: add src/setupTests.test.ts
  • test: add src/app/layout.test.tsx
  • test: add src/components/mdx.test.tsx
  • test: add src/setupJest.test.js
How to run tests

Jest is included as a dev dependency.

Run tests directly

./node_modules/.bin/jest

Optional: add npm scripts

You can add convenient scripts to package.json:

{
  "scripts": {
    "test": "jest",
    "test:watch": "jest --watch",
    "test:coverage": "jest --coverage --coverageReporters=text-summary"
  }
}

Usage examples

Run tests once:

pnpm run test

Run tests in watch mode during development:

pnpm run test:watch

Run tests with coverage summary:

pnpm run test:coverage

This contribution was created with assistance from ToTheos (https://totheos.com) to support test generation, code refactoring, and pull request preparation for an open-source codebases.

The tool was used to automate routine software development tasks.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

Someone is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant