MCPcopy Create free account
hub / github.com/TanStack/devtools / makeCard

Function makeCard

packages/devtools/src/tabs/marketplace/plugin-card.test.tsx:8–24  ·  view source on GitHub ↗
(overrides?: Partial<PluginCard>)

Source from the content-addressed store, hash-verified

6import type { PluginCard } from './types'
7
8const makeCard = (overrides?: Partial<PluginCard>): PluginCard => ({
9 devtoolsPackage: '@x/y',
10 requiredPackageName: '@x/req',
11 framework: 'react',
12 hasPackage: false,
13 hasDevtools: false,
14 isRegistered: false,
15 actionType: 'requires-package',
16 status: 'idle',
17 isCurrentFramework: true,
18 metadata: {
19 packageName: '@x/y',
20 title: 'My Plugin',
21 framework: 'react',
22 },
23 ...overrides,
24})
25
26const renderCard = (card: PluginCard, onAction = vi.fn()) =>
27 render(() => (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected