Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(nx-affected-matrix): e2e apps are ignored (#55)
Browse files Browse the repository at this point in the history
closes #54
  • Loading branch information
ronnetzer authored Aug 3, 2022
1 parent ce487fe commit 5819478
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const getAffected = jest.fn().mockResolvedValue({
projects: ['project1', 'project2', 'project3', 'project4'],
apps: ['project1', 'project2'],
libs: ['project3', 'project4'],
e2e: ['project1-e2e'],
projectGraph: {
nodes: {},
} as ProjectGraph,
Expand Down
8 changes: 2 additions & 6 deletions packages/nx-affected-matrix/src/app/get-affected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ export async function getAffected(
projects: string[];
apps: string[];
libs: string[];
e2e: string[];
projectGraph: ProjectGraph;
}> {
args = { ...args, target };
const apps: string[] = [],
libs: string[] = [],
e2e: string[] = [];
libs: string[] = [];

const projectGraph = await createProjectGraphAsync();
const projectNodes = projectsToRun(args, projectGraph);
Expand All @@ -40,14 +38,13 @@ export async function getAffected(

for (const project of projectNodes) {
switch (project.type) {
case 'e2e':
case 'app':
apps.push(mapToProjectName(project));
break;
case 'lib':
libs.push(mapToProjectName(project));
break;
case 'e2e':
e2e.push(mapToProjectName(project));
}
}

Expand All @@ -57,7 +54,6 @@ export async function getAffected(
projects: projectNodes.map(mapToProjectName),
apps,
libs,
e2e,
projectGraph,
};
}

0 comments on commit 5819478

Please sign in to comment.