issue #198: Avoid getting alerts from Code scanning#201
Conversation
… to helpers.ts file
| await expect(gitRepo.hasCommits()).resolves.toBe(true) | ||
| }) | ||
|
|
||
| it('should fail when the repo has not been initialized and check if it has commits', async () => { |
There was a problem hiding this comment.
hi @ivanramosnet I did not understand the test intention well. Maybe it's only me but I would rephrase it to:
it should fail while checking if the repo has commits when it has not been initialized
|
hi @ivanramosnet can you rebase? There is a failing test because now we need the job id in the commit subject. You only need to add it to this function: export function dummyCommitSubjectText(): string {
return '📝🈺: queue-name: job.id.1 job.ref.f1a69d48a01cc130a64aeac5eaf762e4ba685de7'
} |
| expect(gitRepo.isInitialized()).toBe(true) | ||
| }) | ||
|
|
||
| it('should check if a repo has commits', async () => { |
There was a problem hiding this comment.
Maybe:
initialize new git repository, check that there are no comments, add a test comment, check for the comment
|
hi, @ivanramosnet I think tests are failing. Tests are not being executed on PR from forks. After you rebase make sure tests pass: UPDATE: Tests only fail if you execute them locally with You will see these errors: I think this is related to #175. Tests should set up the configuration they need and not rely on preexisting configurations. |
|
Replaced by #235 |
|
Merged with #235 |
Fix issue #198