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

Commit 5819478

Browse files
authored
fix(nx-affected-matrix): e2e apps are ignored (#55)
closes #54
1 parent ce487fe commit 5819478

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

packages/nx-affected-matrix/src/app/__mocks__/get-affected.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const getAffected = jest.fn().mockResolvedValue({
1111
projects: ['project1', 'project2', 'project3', 'project4'],
1212
apps: ['project1', 'project2'],
1313
libs: ['project3', 'project4'],
14-
e2e: ['project1-e2e'],
1514
projectGraph: {
1615
nodes: {},
1716
} as ProjectGraph,

packages/nx-affected-matrix/src/app/get-affected.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ export async function getAffected(
2020
projects: string[];
2121
apps: string[];
2222
libs: string[];
23-
e2e: string[];
2423
projectGraph: ProjectGraph;
2524
}> {
2625
args = { ...args, target };
2726
const apps: string[] = [],
28-
libs: string[] = [],
29-
e2e: string[] = [];
27+
libs: string[] = [];
3028

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

4139
for (const project of projectNodes) {
4240
switch (project.type) {
41+
case 'e2e':
4342
case 'app':
4443
apps.push(mapToProjectName(project));
4544
break;
4645
case 'lib':
4746
libs.push(mapToProjectName(project));
4847
break;
49-
case 'e2e':
50-
e2e.push(mapToProjectName(project));
5148
}
5249
}
5350

@@ -57,7 +54,6 @@ export async function getAffected(
5754
projects: projectNodes.map(mapToProjectName),
5855
apps,
5956
libs,
60-
e2e,
6157
projectGraph,
6258
};
6359
}

0 commit comments

Comments
 (0)