这是indexloc提供的服务,不要输入任何密码
Skip to content

test(telemetry): add telemetry API client tests #10650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2025
Merged

Conversation

anthonyshew
Copy link
Contributor

Changes

  • Add 3 new test cases for telemetry recording functionality in
  • Test successful telemetry recording with multiple events and parent-child relationships
  • Test empty events handling edge case
  • Test different event types (Generic events)
  • Add telemetry endpoint () to mock server in
  • Improve test coverage for telemetry methods

Test Coverage Improvement

Added 3 new test cases that cover:

  • ✅ Successful telemetry recording with multiple events
  • ✅ Empty events array handling
  • ✅ Different telemetry event types

The tests use the mock server to verify the telemetry API client correctly sends events to the telemetry endpoint and handles various scenarios properly.

- Add 3 new test cases for telemetry recording functionality
- Test successful telemetry recording with multiple events
- Test empty events handling
- Test different event types
- Add telemetry endpoint to mock server
- Improve test coverage for AnonAPIClient telemetry methods
@anthonyshew anthonyshew requested a review from a team as a code owner July 8, 2025 16:00
Copy link

vercel bot commented Jul 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 4:01pm

@anthonyshew anthonyshew changed the title test: add telemetry API client tests test(telemetry): add telemetry API client tests Jul 9, 2025
@anthonyshew anthonyshew merged commit 7f6e3fa into main Jul 14, 2025
42 checks passed
@anthonyshew anthonyshew deleted the shew/a4f57 branch July 14, 2025 13:56
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