Skip to content

test(bottom-navigation): improve test coverage#1985

Open
aioya wants to merge 1 commit into
varletjs:devfrom
aioya:test/bottom-navigation-coverage
Open

test(bottom-navigation): improve test coverage#1985
aioya wants to merge 1 commit into
varletjs:devfrom
aioya:test/bottom-navigation-coverage

Conversation

@aioya

@aioya aioya commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Checklist

List of tasks you have already done and plan to do.

  • Fix linting errors
  • Tests have been added / updated (or snapshots)

Change information

Improve unit test coverage for the bottom-navigation component (including bottom-navigation-item, which is tested within this component's spec file). Pure test additions, no behavior changes.

Issues

N/A

Related Links

N/A

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

@aioya is attempting to deploy a commit to the varletjs Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new

pkg-pr-new Bot commented Jun 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

@varlet/cli

npm i https://pkg.pr.new/@varlet/cli@1985

@varlet/icons

npm i https://pkg.pr.new/@varlet/icons@1985

@varlet/import-resolver

npm i https://pkg.pr.new/@varlet/import-resolver@1985

@varlet/preset-tailwindcss

npm i https://pkg.pr.new/@varlet/preset-tailwindcss@1985

@varlet/preset-unocss

npm i https://pkg.pr.new/@varlet/preset-unocss@1985

@varlet/shared

npm i https://pkg.pr.new/@varlet/shared@1985

@varlet/touch-emulator

npm i https://pkg.pr.new/@varlet/touch-emulator@1985

@varlet/ui

npm i https://pkg.pr.new/@varlet/ui@1985

@varlet/use

npm i https://pkg.pr.new/@varlet/use@1985

@varlet/vite-plugins

npm i https://pkg.pr.new/@varlet/vite-plugins@1985

commit: 986507a

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves unit test coverage for the bottom-navigation component (including coverage of bottom-navigation-item behavior exercised through the parent), focusing on event handling and boundary/edge-case prop behavior.

Changes:

  • Adds tests for before-change rejection behavior and verifies no update:active emission occurs.
  • Adds tests for active boundary handling (non-number, negative/out-of-range clamping, NaN, and length changes).
  • Adds tests covering FAB-related spacing classes and bottom-navigation-item rendering scenarios (badge/icon/slots/active selection/click).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

`,
})

await new Promise((resolve) => setTimeout(resolve, 16))
`,
})

await new Promise((resolve) => setTimeout(resolve, 16))
`,
})

await new Promise((resolve) => setTimeout(resolve, 16))
`,
})

await new Promise((resolve) => setTimeout(resolve, 16))
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.

2 participants