currents-dev / cli

0 stars 0 forks source link

Currents switching to Cypress 10 CLI Commands #6

Closed cmcnicholas closed 2 years ago

cmcnicholas commented 2 years ago

We have been migrating to Cypress 10 and have noticed our pipeline (using currents) is reporting this:

⚠ Warning: run-ct is deprecated and will be removed in a future release.
Use `cypress run --component` instead.

Will currents be moving to the correct CLI command before they remove backwards compat?

agoldis commented 2 years ago

@cmcnicholas What command exactly are you running?

In general, @currents/cli doesn't modify / add / remove the command and flags - it invokes cypress with exactly the same arguments

cmcnicholas commented 2 years ago

we currently run npx currents run-ct --record --key ${{ parameters.cypressRecordKey }} for component tests.

are you saying this can already be swapped to npx currents run --component --record --key ${{ parameters.cypressRecordKey }}

this is great if so 👍

agoldis commented 2 years ago

@cmcnicholas it is indeed :)

❯ npx currents run --component --record --key xxx
[currents] Running cypress with API URL: https://cy.currents.dev
The testing type selected (component) is not configured in your config file.