Skip to content

Commit 0af60f1

Browse files
author
John Doe
committed
refactor: wip
1 parent 3ee7ccf commit 0af60f1

File tree

1 file changed

+2
-2
lines changed
  • testing/test-nx-utils/src/lib/utils

1 file changed

+2
-2
lines changed

testing/test-nx-utils/src/lib/utils/nx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ export async function nxShowProjectJson<T extends ProjectConfiguration>(
9595
return { code: 0, stderr, projectJson: JSON.parse(stdout) as T };
9696
} catch (error) {
9797
const execError = error as { code?: number; stderr?: string };
98-
const fallbackProject: T = { name: project, root: '' } as T;
98+
const fallbackProject = { name: project, root: '' };
9999
return {
100100
code: execError.code ?? 1,
101101
stderr: execError.stderr ?? String(error),
102-
projectJson: fallbackProject,
102+
projectJson: fallbackProject as T,
103103
};
104104
}
105105
}

0 commit comments

Comments
 (0)