Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Oct 22, 2024
1 parent 2b7a2f2 commit 54c634a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testing/test-nx-utils/src/lib/utils/nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export async function nxShowProjectJson<T extends ProjectConfiguration>(
) {
const { prefix, userconfig } = options ?? {};
const { code, stderr, stdout } = await executeProcess({
command: 'NX_DAEMON=false NX_CACHE_PROJECT_GRAPH=false npx',
command: 'npx',
args: objectToCliArgs({
_: ['nx', 'show', 'project', project, '--skipNxCache'],
verbose: false, // debug errors
Expand All @@ -111,6 +111,11 @@ export async function nxShowProjectJson<T extends ProjectConfiguration>(
userconfig,
}),
cwd,
env: {
...process.env,
NX_DAEMON: 'false',
NX_CACHE_PROJECT_GRAPH: 'false',
},
});

try {
Expand Down

0 comments on commit 54c634a

Please sign in to comment.