Skip to content
Permalink
Browse files

Chore: fix CLIEngine tests when os.tmpdir is a symlink (#11697)

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 f5bae78c19d5359f67969a2ff344025082e253f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/lib/cli-engine.js
@@ -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;

0 comments on commit f5bae78

Please sign in to comment.
You can’t perform that action at this time.