Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Duda committed Apr 11, 2024
1 parent 864ce12 commit c07b843
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/commits/verification.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ afterAll(() => {
});

describe("Commit verification by scope tags script", () => {
it("When commits consists only of files which extensions are ignored, the commit is marked by 'includesOnlyIgnoredFiles' flag", () => {

// Use fs.readdirSync to read the contents of the directory synchronously
it("Mock repository to be cloned with content", () => {
const fileList = fs.readdirSync(resolve(join(TEMP_TEST_FOLDER, "./tmp/_repo_cloned")));
if (fileList.length === 0) {
console.debug("There is no content with mock repo, probably scope-tags repository was not correctly cloned, please refer to README.md");
}
expect(fileList.length).toBeGreaterThan(0);
})

it("When commits consists only of files which extensions are ignored, the commit is marked by 'includesOnlyIgnoredFiles' flag", () => {

console.debug('Files and folders in the directory:', fileList);

expect(true).toBe(true);
});
Expand Down

0 comments on commit c07b843

Please sign in to comment.