Skip to content
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

BC-8008 - Fix any type linter warning #3549

Merged
merged 87 commits into from
Feb 26, 2025
Merged

Conversation

odalys-dataport
Copy link
Contributor

@odalys-dataport odalys-dataport commented Feb 12, 2025

Short Description

Links to Ticket and related Pull-Requests

BC-8008

Changes

Data-security

Deployment

New Repos, NPM packages or vendor scripts

Screenshots of UI changes

Checklist before merging

  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • PO: Any deviation from requirements was agreed with Product-Owner / ticket author / support-team
  • DEV: Every new component is implemented having accessibility in mind (e.g. aria-label, role property)

Notice: Please keep this Pull-Request as a Draft (or add WIP label), until it is ready to be reviewed

@odalys-dataport odalys-dataport marked this pull request as ready for review February 20, 2025 09:35
Copy link
Contributor

@MartinSchuhmacher MartinSchuhmacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests need some changing, will look into that

@MartinSchuhmacher MartinSchuhmacher dismissed their stale review February 21, 2025 10:47

request fullfilled

@@ -45,12 +45,12 @@ describe("env-config module", () => {
describe("when configs loaded successfully", () => {
const setup = () => {
const serverConfigresponse = createMock<
AxiosResponse<ConfigResponse, any>
AxiosResponse<ConfigResponse, unknown>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second type parameter defaults to any and therefore can be left out:

export interface AxiosResponse<T = any, D = any>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as a hint. Can be left "as-is".

};

spy.mockReturnValue(
taskApiMock as unknown as serverApi.TaskApiInterface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the setup()? Couldn't we just do the type cast there?

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
77.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@MartinSchuhmacher MartinSchuhmacher merged commit f11895c into main Feb 26, 2025
68 of 69 checks passed
@MartinSchuhmacher MartinSchuhmacher deleted the BC-8008-eslint-any branch February 26, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants