diff --git a/tests/lib/cli.js b/tests/lib/cli.js index 2b1fce7bd30..1553d8163b1 100644 --- a/tests/lib/cli.js +++ b/tests/lib/cli.js @@ -171,7 +171,7 @@ describe("cli", () => { }); }); - describe.only("when there is a local config file", () => { + describe("when there is a local config file", () => { it(`should load the local config file with configType:${configType}`, async () => { await cli.execute("lib/cli.js", null, useFlatConfig); @@ -487,9 +487,13 @@ describe("cli", () => { describe("when executing without no-error-on-unmatched-pattern flag", () => { it(`should throw an error on unmatched glob pattern with configType:${configType}`, async () => { - const filePath = getFixturePath("unmatched-patterns"); + let filePath = getFixturePath("unmatched-patterns"); const globPattern = "unmatched*.js"; + if (useFlatConfig) { + filePath = filePath.replace(/\\/gu, "/"); + } + await stdAssert.rejects(async () => { await cli.execute(`"${filePath}/${globPattern}"`, null, useFlatConfig); }, new Error(`No files matching '${filePath}/${globPattern}' were found.`));