Skip to content

Commit

Permalink
fix installer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Oct 27, 2023
1 parent 106dd3e commit 259568c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions packages/installer/test/unit/dappGet/aggregate/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,17 @@ describe.skip("dappGet/aggregate", () => {

before("Mock", async () => {
const mock = await rewiremock.around(
() => import("../../../../src/dappGet/aggregate/index"),
() => import("../../../../src/dappGet/aggregate/index.js"),
(mock) => {
mock(() =>
import("../../../../src/dappGet/aggregate/getRelevantInstalledDnps")
import(
"../../../../src/dappGet/aggregate/getRelevantInstalledDnps.js"
)
)
.withDefault(getRelevantInstalledDnps)
.toBeUsed();
mock(() =>
import("../../../../src/dappGet/aggregate/aggregateDependencies")
import("../../../../src/dappGet/aggregate/aggregateDependencies.js")
)
.withDefault(aggregateDependencies)
.toBeUsed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { params } from "@dappnode/params";
// 2. With the existing edited compose will add back again the alias: fullnode.dappnode and test it

describe("Edit fullnode in eth client", () => {
beforeAll(() => {
before(() => {
// create dnp_repo dir
shellSafe("mkdir dnp_repo");
});
Expand Down

0 comments on commit 259568c

Please sign in to comment.