Skip to content

Commit

Permalink
fix(graph): fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Oct 13, 2023
1 parent 73471b5 commit 422457b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/nx-misc/src/extras.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ describe('Extra Nx Misc Tests', () => {
const dependentLib = 'lib-dependent-123';
runCLI(`generate @nx/js:lib ${dependentLib}`);

updateJson(join(baseLib, 'project.json'), (config) => {
updateJson(join('libs', baseLib, 'project.json'), (config) => {
config.targets['build'].inputs = ['default', '^default'];
config.implicitDependencies = [dependentLib];
return config;
Expand Down
2 changes: 1 addition & 1 deletion packages/nx/src/native/transform-objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function transformProjectGraphForRust(
for (const [projectName, projectNode] of Object.entries(graph.nodes)) {
const targets: Record<string, Target> = {};
for (const [targetName, targetConfig] of Object.entries(
projectNode.data.targets
projectNode.data.targets ?? {}
)) {
targets[targetName] = {
executor: targetConfig.executor,
Expand Down

0 comments on commit 422457b

Please sign in to comment.