We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6ce3bf commit dd2fc25Copy full SHA for dd2fc25
testing/test-nx-utils/src/lib/utils/nx.ts
@@ -115,8 +115,8 @@ export async function nxShowProjectJson<T extends ProjectConfiguration>(
115
};
116
return {
117
code: execError.code ?? 1,
118
- stderr: execError.stderr ?? String(error),
119
- projectJson: JSON.parse(execError.stdout ?? '{}') as T,
+ stderr: execError.stderr ?? String((error as Error).message),
+ projectJson: JSON.parse('{}'),
120
121
}
122
0 commit comments