-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue #198: Avoid getting alerts from Code scanning #201
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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'
} |
@@ -37,4 +44,33 @@ describe('GitRepo', () => { | |||
|
|||
expect(gitRepo.isInitialized()).toBe(true) | |||
}) | |||
|
|||
it('should check if a repo has commits', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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