Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Nov 5, 2024
1 parent 516123b commit 87dc0d3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/config/src/ConfigManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ test.sequential(
const { tempDir, logger } = context;

const configDir = path.join(tempDir, "extconfig");
process.env.ZWAVEJS_EXTERNAL_CONFIG = configDir;
await syncExternalConfigDir(logger);
await syncExternalConfigDir(configDir, logger);

expect(await pathExists(configDir)).toBe(true);
expect(
Expand All @@ -68,7 +67,6 @@ test.sequential(
const { tempDir, logger } = context;

const configDir = path.join(tempDir, "extconfig");
process.env.ZWAVEJS_EXTERNAL_CONFIG = configDir;
const otherVersion = semver.inc(ownVersion, "major");

await fs.mkdir(configDir, { recursive: true });
Expand All @@ -78,7 +76,7 @@ test.sequential(
"utf8",
);

await syncExternalConfigDir(logger);
await syncExternalConfigDir(configDir, logger);

expect(await pathExists(configDir)).toBe(true);

Expand All @@ -95,7 +93,6 @@ test.sequential(
const { tempDir, logger } = context;

const configDir = path.join(tempDir, "extconfig");
process.env.ZWAVEJS_EXTERNAL_CONFIG = configDir;
const otherVersion = semver.inc(ownVersion, "prerelease")!;

await fs.mkdir(configDir, { recursive: true });
Expand All @@ -105,7 +102,7 @@ test.sequential(
"utf8",
);

await syncExternalConfigDir(logger);
await syncExternalConfigDir(configDir, logger);

expect(await pathExists(configDir)).toBe(true);

Expand Down

0 comments on commit 87dc0d3

Please sign in to comment.