Skip to content

Commit

Permalink
Chore: fix CLIEngine tests when os.tmpdir is a symlink (#11697)
Browse files Browse the repository at this point in the history
Previously, this was causing test failures on macOS because some parts of the CLIEngine tests call realpath() and others didn't.
  • Loading branch information
not-an-aardvark committed May 10, 2019
1 parent e4400b5 commit f5bae78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lib/cli-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe("CLIEngine", () => {
},
examplePreprocessorName = "eslint-plugin-processor",
originalDir = process.cwd(),
fixtureDir = path.resolve(os.tmpdir(), "eslint/fixtures");
fixtureDir = path.resolve(fs.realpathSync(os.tmpdir()), "eslint/fixtures");

/** @type {import("../../lib/cli-engine")["CLIEngine"]} */
let CLIEngine;
Expand Down

0 comments on commit f5bae78

Please sign in to comment.