Skip to content

Commit

Permalink
test: add e2e test
Browse files Browse the repository at this point in the history
Add  tests for installing dependency from 3rd party registry
  • Loading branch information
ComradeVanti committed Nov 1, 2024
1 parent 13f4c29 commit c0fb1e8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/verdaccio/com.some.package/v1.0.0/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "com.some.package",
"version": "1.0.0"
}
14 changes: 14 additions & 0 deletions test/e2e/add.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,20 @@ describe("add packages", () => {
);
});

it("should add 3rd party package", async () => {
await testSuccessfulAdd(
[
{
packageName: "com.some.package",
expectedVersion: "1.0.0",
addVersion: "latest",
},
],
["com.some.package"],
e2eTestRegistryUrl
);
});

it("should be atomic", async () => {
const homeDir = await prepareHomeDirectory();
const projectDir = await prepareUnityProject(homeDir);
Expand Down

0 comments on commit c0fb1e8

Please sign in to comment.