MCPcopy Create free account
hub / github.com/code-pushup/cli / createBinding

Function createBinding

packages/create-cli/src/lib/setup/wizard.unit.test.ts:21–40  ·  view source on GitHub ↗
(
  overrides?: Partial<PluginSetupBinding>,
)

Source from the content-addressed store, hash-verified

19}));
20
21function createBinding(
22 overrides?: Partial<PluginSetupBinding>,
23): PluginSetupBinding {
24 return {
25 slug: 'test-plugin',
26 title: 'Test Plugin',
27 packageName: '@code-pushup/test-plugin',
28 isRecommended: () => Promise.resolve(true),
29 generateConfig: () => ({
30 imports: [
31 {
32 moduleSpecifier: '@code-pushup/test-plugin',
33 defaultImport: 'testPlugin',
34 },
35 ],
36 pluginInit: ['testPlugin(),'],
37 }),
38 ...overrides,
39 };
40}
41
42describe('runSetupWizard', () => {
43 describe('TypeScript config', () => {

Callers 2

withPromptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected