Skip to content

Commit

Permalink
test: add gradleProjectName (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
ola magdziarek committed Oct 12, 2022
1 parent 84f728b commit b3e2b00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/system/multi-module.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ test('multi-project, ran from a subproject directory', async () => {
'build.gradle',
);
expect(result.dependencyGraph.rootPkg.name).toBe('subproj');
expect(result.meta!.gradleProjectName).toBe('subproj');
expect(result.plugin.meta!.allSubProjectNames).toEqual([]);

const pkgs = result.dependencyGraph.getDepPkgs();
Expand All @@ -71,6 +72,7 @@ test('multi-project: only sub-project has deps and they are returned', async ()
options,
);
expect(result.dependencyGraph.rootPkg.name).toBe('./subproj');
expect(result.meta!.gradleProjectName).toBe('root-proj/subproj');
expect(result.plugin.meta!.allSubProjectNames).toEqual(['subproj']);

const pkgs = result.dependencyGraph.getDepPkgs();
Expand Down Expand Up @@ -153,6 +155,7 @@ test('multi-project: only sub-project has deps and they are returned space needs

expect(result.plugin.meta!.allSubProjectNames).toEqual(['subproj']);
expect(result.dependencyGraph.rootPkg.name).toBe('./subproj');
expect(result.meta!.gradleProjectName).toBe('root-proj/subproj');

const pkgs = result.dependencyGraph.getDepPkgs();
const nodeIds: string[] = [];
Expand Down Expand Up @@ -240,6 +243,7 @@ test('multi-project-some-unscannable: gradle-sub-project for a good subproject w
]);

expect(result.dependencyGraph.rootPkg.name).toBe('./subproj');
expect(result.meta!.gradleProjectName).toBe('root-proj/subproj');

const pkgs = result.dependencyGraph.getDepPkgs();
const nodeIds: string[] = [];
Expand Down

0 comments on commit b3e2b00

Please sign in to comment.