MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / angularComponent

Function angularComponent

__tests__/sync-route-module-retry.test.ts:39–40  ·  view source on GitHub ↗
(name: string, exported = 'export')

Source from the content-addressed store, hash-verified

37
38const pkg = (dependencies: Record<string, string>) => JSON.stringify({ name: 'app', dependencies });
39const angularComponent = (name: string, exported = 'export') =>
40 `import { Component } from '@angular/core';\n\n@Component({ selector: 'app-x', template: '' })\n${exported} class ${name} {}\n`;
41const vueView = (text: string) => `<template><div>${text}</div></template>\n<script setup>\nconst ready = true\n</script>\n`;
42
43const SCENARIOS: Scenario[] = [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected