stable

Clone or download

Read-only

refactor: remove usage of `any` from cypress-utilities-support

Closes request #37922 Remove usage of `any` from cypress-utilities-support In the cypress-utilities-support lib, `any` is used to type the content inside `Response` returned by the different Tuleap API calls wrappers. Since the `Cypress.Response` and `cy.request` both accept a generic type to type the returned value, we can drop the `any` type and remove the eslint-disable comments here and there. How to test: - The typecheck should succeed - Cypress tests should succeed Change-Id: Ie3f774c70f70cab3392ba06ea25dd7b4b15eef46

Modified Files

Name
M lib/test-utils/cypress-utilities-support/package.json +1 −0 Go to diff View file
M lib/test-utils/cypress-utilities-support/pnpm-lock.yaml +3 −0 Go to diff View file
M lib/test-utils/cypress-utilities-support/src/api-helper.ts +30 −24 Go to diff View file
M lib/test-utils/cypress-utilities-support/src/commands-type-definitions.d.ts +7 −8 Go to diff View file
M lib/test-utils/cypress-utilities-support/src/commands.ts +13 −12 Go to diff View file
M lib/test-utils/cypress-utilities-support/src/trackers.ts +40 −18 Go to diff View file