Skip to content

Commit

Permalink
Remove .only; fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Sep 9, 2022
1 parent a2e5be4 commit bf9c14f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/lib/cli.js
Expand Up @@ -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);
Expand Down Expand Up @@ -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.`));
Expand Down

0 comments on commit bf9c14f

Please sign in to comment.