Skip to content

Commit

Permalink
test: Add test case for unmatched files
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Nov 14, 2024
1 parent 5d53ccc commit ca36134
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/lib/linter/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,20 @@ test.serial("lint: com.ui5.troublesome.app with unmatched patterns", async (t) =
});
});

test.serial("lint: com.ui5.troublesome.app with unmatched files", async (t) => {
const projectPath = path.join(fixturesProjectsPath, "com.ui5.troublesome.app");

const {lintProject} = t.context;

const res = await lintProject({
filePatterns: ["webapp/i18n/*"],
rootDir: projectPath,
});

// TODO: when logging is implemented, check for log messages.
t.snapshot(preprocessLintResultsForSnapshot(res));
});

test.serial("lint: com.ui5.troublesome.app with files property in ui5lint.config", async (t) => {
const projectPath = path.join(fixturesProjectsPath, "com.ui5.troublesome.app");

Expand Down

0 comments on commit ca36134

Please sign in to comment.