Repository navigation
test(*): add type tests for public APIs of all libraries and enable vitest 'typecheck' - #613
Conversation
…itest 'typecheck'
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
View your CI Pipeline Execution ↗ for commit 248c2a4
💡 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 |
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
Add
*.test-d.ts(x)type tests for the public APIs of the libraries, and enabletypecheckin each package'svite.config.tsso vitest runs them as type tests.devtools:TanStackDevtoolsPluginrenderandnamecallback arguments, requiredrender, andTanStackDevtoolsCorerejecting unknown config options.devtools-a11y: the root andproductionentries ofcore,reactandsolidexpose the same types.devtools-client:devtoolsEventClientinfersemitandonpayloads from its event map and rejects unknown events or mismatched payloads.devtools-ui:JsonTreerejectscollapsePathsthat do not exist or point to a primitive, andSelectinfers theonChangevalue from its options.devtools-utils:create{React,Preact,Solid,Vue,Svelte,Angular}{Panel,Plugin}panel/plugin props, no-op variants matching the real ones,rendersignatures, and required components.devtools-vite/devtools-rspack:defineDevtoolsConfigkeeps the config type and rejects unknown options, unknown console levels andenhancedLogswithoutenabled;devtoolsparameter and return types.devtools-webmcp: the root andproductionregisterDevtoolsToolsshare a type, return a cleanup function, typeDevtoolsToolinput, and requirepluginId.react-devtools,preact-devtools,solid-devtools,vue-devtools,svelte-devtools,angular-devtools: plugin types accept the supportedrender/componentforms with typed callback arguments, and requirerender/component.teststo theincludeofpackages/devtools-rspack/tsconfig.json.vueto theignoreDependenciesofpackages/devtools-utilsinknip.json, since the Vue type test imports its types.✅ Checklist
pnpm test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit