Repository navigation
test(event-bus-client): add type tests for 'EventClient' and enable vitest 'typecheck' - #612
Conversation
…itest 'typecheck'
|
|
View your CI Pipeline Execution ↗ for commit c88c593
💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗ ☁️ Nx Cloud last updated this comment at |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
More templates
@tanstack/angular-devtools
@tanstack/devtools
@tanstack/devtools-a11y
@tanstack/devtools-bundler-core
@tanstack/devtools-client
@tanstack/devtools-rspack
@tanstack/devtools-ui
@tanstack/devtools-utils
@tanstack/devtools-vite
@tanstack/devtools-webmcp
@tanstack/devtools-event-bus
@tanstack/devtools-event-client
@tanstack/preact-devtools
@tanstack/react-devtools
@tanstack/solid-devtools
@tanstack/svelte-devtools
@tanstack/vue-devtools
commit: |
🎯 Changes
packages/event-bus-client/tests/index.test-d.tswith type tests forEventClient:productionentries expose the sameEventClienttype.emitinfers the payload type from the event name, and rejects a mismatched payload or an unknown event name.oninfers the callback event type from the event name, returns() => void, and rejects an unknown event name.onAllPluginEventspasses the union of plugin events, and narrowing onevent.typenarrows the payload.onAllpassesTanStackDevtoolsEvent<string, any>.typecheckinpackages/event-bus-client/vite.config.ts, so vitest runs the*.test-d.tsfiles as type tests.✅ Checklist
pnpm test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit