|
1 |
| -import { prepareHomeDirectory } from "./setup/directories"; |
2 |
| -import { runOpenupm } from "./run"; |
3 | 1 | import { ResultCodes } from "../../src/cli/result-codes";
|
| 2 | +import { openupmRegistryUrl } from "../../src/domain/registry-url"; |
| 3 | +import { runOpenupm } from "./run"; |
| 4 | +import { prepareHomeDirectory } from "./setup/directories"; |
| 5 | +import { e2eTestRegistryUrl } from "./setup/test-registry"; |
4 | 6 |
|
5 | 7 | describe("print package dependencies", () => {
|
6 | 8 | it("should print dependencies for an openupm package with version", async () => {
|
@@ -38,6 +40,27 @@ describe("print package dependencies", () => {
|
38 | 40 | );
|
39 | 41 | });
|
40 | 42 |
|
| 43 | + it("should print dependencies for package with mix of 3rd party, openupm and unity dependencies", async () => { |
| 44 | + const homeDir = await prepareHomeDirectory(); |
| 45 | + |
| 46 | + const output = await runOpenupm(homeDir, [ |
| 47 | + "deps", |
| 48 | + "com.mixed.package@1.0.0", |
| 49 | + "--registry", |
| 50 | + e2eTestRegistryUrl, |
| 51 | + openupmRegistryUrl, |
| 52 | + ]); |
| 53 | + |
| 54 | + expect(output.code).toEqual(ResultCodes.Ok); |
| 55 | + expect(output.stdErr).toEqual( |
| 56 | + expect.arrayContaining([ |
| 57 | + expect.stringContaining("com.some.package@1.0.0"), |
| 58 | + expect.stringContaining("dev.comradevanti.opt-unity@3.5.0"), |
| 59 | + expect.stringContaining("com.unity.ugui@1.0.0"), |
| 60 | + ]) |
| 61 | + ); |
| 62 | + }); |
| 63 | + |
41 | 64 | it("should print built-in dependencies", async () => {
|
42 | 65 | // See https://github.com/openupm/openupm-cli/issues/133
|
43 | 66 | const homeDir = await prepareHomeDirectory();
|
|
0 commit comments