Skip to content

Commit 36f81ff

Browse files
committed
test: fix test test-nx-utils helper
1 parent 6b2bd70 commit 36f81ff

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import {
66
type Tree,
77
updateJson,
88
} from '@nx/devkit';
9+
import type { ProjectGraph } from '@nx/devkit';
910
import { libraryGenerator } from '@nx/js';
10-
import type { LibraryGeneratorSchema } from '@nx/js/src/utils/schema';
11+
import type { LibraryGeneratorSchema } from '@nx/js/src/generators/library/schema';
1112
import path from 'node:path';
1213
import { createTreeWithEmptyWorkspace } from 'nx/src/generators/testing-utils/create-tree-with-empty-workspace';
1314
import { executeProcess } from '@code-pushup/utils';
@@ -31,6 +32,8 @@ export function executorContext<
3132
},
3233
version: 1,
3334
},
35+
nxJsonConfiguration: {},
36+
projectGraph: { nodes: {}, dependencies: {} } satisfies ProjectGraph,
3437
};
3538
}
3639

@@ -53,7 +56,6 @@ export async function generateWorkspaceAndProject(
5356
testEnvironment: 'node',
5457
buildable: false,
5558
publishable: false,
56-
projectNameAndRootFormat: 'as-provided',
5759
...normalizedOptions,
5860
});
5961

0 commit comments

Comments
 (0)