We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cba9fc commit 3ee7ccfCopy full SHA for 3ee7ccf
testing/test-nx-utils/src/lib/utils/nx.ts
@@ -95,10 +95,11 @@ export async function nxShowProjectJson<T extends ProjectConfiguration>(
95
return { code: 0, stderr, projectJson: JSON.parse(stdout) as T };
96
} catch (error) {
97
const execError = error as { code?: number; stderr?: string };
98
+ const fallbackProject: T = { name: project, root: '' } as T;
99
return {
100
code: execError.code ?? 1,
101
stderr: execError.stderr ?? String(error),
- projectJson: { name: project, root: '' } as T,
102
+ projectJson: fallbackProject,
103
};
104
}
105
0 commit comments