MCPcopy Index your code
hub / github.com/code-pushup/cli / normalizedExecutorContext

Function normalizedExecutorContext

packages/nx-plugin/mocks/utils/executor.ts:3–16  ·  view source on GitHub ↗
(
  nameOrOpt: string | { projectName: string },
)

Source from the content-addressed store, hash-verified

1import type { NormalizedExecutorContext } from '../../src/executors/internal/context.js';
2
3export function normalizedExecutorContext(
4 nameOrOpt: string | { projectName: string },
5): NormalizedExecutorContext {
6 const { projectName } =
7 typeof nameOrOpt === 'string' ? { projectName: nameOrOpt } : nameOrOpt;
8 return {
9 projectName,
10 workspaceRoot: 'workspaceRoot',
11 projectConfig: {
12 name: projectName,
13 root: 'root',
14 },
15 };
16}

Callers 1

utils.int.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected