Skip to content

test: add unit tests generated by ToTheos - #32

Open
ToTheos-Dev wants to merge 19 commits into
web3templates:mainfrom
ToTheos-Forks:totheos-tests/2026-05-19T09-04-49-205Z
Open

test: add unit tests generated by ToTheos#32
ToTheos-Dev wants to merge 19 commits into
web3templates:mainfrom
ToTheos-Forks:totheos-tests/2026-05-19T09-04-49-205Z

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 : 100% ( 2/2 )
Branches   : 100% ( 0/0 )
Functions  : 100% ( 0/0 )
Lines      : 100% ( 2/2 )

Coverage metrics generated by Jest, an open-source JavaScript testing framework.
Test files and commits
  • test: add config
  • test: add src/types.test.ts
  • test: add src/app/page.test.tsx
  • test: add src/app/layout.test.tsx
  • test: add src/components/Container.test.tsx
  • test: add src/components/Hero.test.tsx
  • test: add src/components/Testimonials.test.tsx
  • test: add src/components/Cta.test.tsx
  • test: add src/components/data.test.js
  • test: add src/components/Benefits.test.tsx
  • test: add src/components/Faq.test.tsx
  • test: add src/components/DarkSwitch.test.tsx
  • test: add src/components/DisclosureClient.test.tsx
  • test: add src/components/Video.test.tsx
  • test: add src/components/Navbar.test.tsx
  • test: add src/components/PopupWidget.test.tsx
  • test: add src/components/SectionTitle.test.tsx
  • test: add src/components/Footer.test.tsx
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:

yarn test

Run tests in watch mode during development:

yarn test:watch

Run tests with coverage summary:

yarn 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

vercel Bot commented May 19, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Web3templates 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