-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
chore(ci): update dependencies #891
Conversation
Hey @mmorel-35 -- thanks for opening the PR. I see there are lots of changes here:
You can help us out and increase your chances of your PR getting merged if you scope down to one specific thing. It's ok to submit multiple PRs for separate issues. Also, if you can give more context in the description on the problem you are solving, that will be much appreciated as well. Thanks! |
Hi @brcrista , I'm going to start by focusing on dependencies updates then |
Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com> Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-Authored-By: MOREL Matthieu <matthieu.morel@cnp.fr> Co-Authored-By: Matthieu MOREL <mmorel-35@users.noreply.github.com>
@@ -17,7 +17,7 @@ describe('@actions/github', () => { | |||
beforeAll(async () => { | |||
// Start proxy server | |||
proxyServer = proxy() | |||
await new Promise(resolve => { | |||
await new Promise<void>(resolve => { |
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.
This is required by "typescript": "^4.3.5"
@@ -32,7 +32,7 @@ describe('@actions/github', () => { | |||
|
|||
afterAll(async () => { | |||
// Stop proxy server | |||
await new Promise(resolve => { | |||
await new Promise<void>(resolve => { |
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.
This is required by "typescript": "^4.3.5"
@@ -302,7 +302,7 @@ export class DownloadHttpClient { | |||
destinationStream: fs.WriteStream, | |||
isGzip: boolean | |||
): Promise<void> { | |||
await new Promise((resolve, reject) => { | |||
await new Promise<void>((resolve, reject) => { |
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.
This is required by "typescript": "^4.3.5"
@@ -454,12 +454,12 @@ describe('Upload Tests', () => { | |||
*/ | |||
jest | |||
.spyOn(HttpClient.prototype, 'patch') | |||
.mockImplementation(async (requestdata, data) => { | |||
.mockImplementation(async (requestUrl, data) => { |
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.
This is to use the same names as in patch function
@@ -385,7 +385,7 @@ describe('Upload Tests', () => { | |||
*/ | |||
jest | |||
.spyOn(HttpClient.prototype, 'post') | |||
.mockImplementation(async (requestdata, data) => { | |||
.mockImplementation(async (requestUrl, data) => { |
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.
This is to use the same names as in post function
@@ -371,8 +371,8 @@ describe('Upload Tests', () => { | |||
* Helpers used to setup mocking for the HttpClient | |||
*/ | |||
async function emptyMockReadBody(): Promise<string> { | |||
return new Promise(resolve => { | |||
resolve() | |||
return new Promise<string>(resolve => { |
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.
This is required by "typescript": "^4.3.5"
@@ -65,8 +65,8 @@ beforeAll(async () => { | |||
* Helpers used to setup mocking for the HttpClient | |||
*/ | |||
async function emptyMockReadBody(): Promise<string> { | |||
return new Promise(resolve => { | |||
resolve() | |||
return new Promise<string>(resolve => { |
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.
This is required by "typescript": "^4.3.5"
@@ -238,8 +238,8 @@ describe('Download Tests', () => { | |||
* Helper used to setup mocking for the HttpClient | |||
*/ | |||
async function emptyMockReadBody(): Promise<string> { | |||
return new Promise(resolve => { | |||
resolve() | |||
return new Promise<string>(resolve => { |
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.
This is required by "typescript": "^4.3.5"
@@ -11,6 +11,7 @@ | |||
"eslint-comments/no-use": "off", | |||
"github/no-then": "off", | |||
"import/no-namespace": "off", | |||
"import/named": "off", |
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.
This is because of "@typescript-eslint/parser": "^4.29.3"
Hi @brcrista, this is ready for review, when you have the time :) |
Hi @luketomlinson ! I have updated the current dependencies with the help of dependabot. When you have a chance to take a look 😊!
It fixes the audit failure by the way.