Skip to content

misc: convert server/lib/modes files to ts + add more cli options to Cloud terminal error outputs#31211

Merged
jennifer-shehane merged 6 commits into
developfrom
js-to-ts-server-2
Mar 6, 2025
Merged

misc: convert server/lib/modes files to ts + add more cli options to Cloud terminal error outputs#31211
jennifer-shehane merged 6 commits into
developfrom
js-to-ts-server-2

Conversation

@jennifer-shehane
Copy link
Copy Markdown
Member

@jennifer-shehane jennifer-shehane commented Mar 3, 2025

Additional details

  • Converting the server/lib/modes and related files to TypeScript
  • The record.ts file could be better, but I did as much as I could

Steps to test

How has the user experience changed?

PR Tasks

protocolManager?: ProtocolManager
videoUploadUrl?: string
video?: string // filepath to the video artifact
video?: string | null // filepath to the video artifact
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I saw where we set this null in another file, so this is possible

const warning = (code, args) => {
const debug = Debug('cypress:server:cypress')

type Mode = 'exit' | 'info' | 'interactive' | 'pkg' | 'record' | 'results' | 'run' | 'smokeTest' | 'version' | 'returnPkg' | 'exitWithCode'
Copy link
Copy Markdown
Member Author

@jennifer-shehane jennifer-shehane Mar 3, 2025

Choose a reason for hiding this comment

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

This type may be more than is actually supported. It was hard to tell the definitive list by how this is called.

Comment on lines +102 to +103
parallel: `${parallel}`,
autoCancelAfterFailures: `${autoCancelAfterFailures}`,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These error messages only accept strings

@jennifer-shehane jennifer-shehane self-assigned this Mar 3, 2025
@cypress
Copy link
Copy Markdown

cypress Bot commented Mar 3, 2025

cypress    Run #60735

Run Properties:  status check passed Passed #60735  •  git commit 5b78bc4a87: Add changelog entry.
Project cypress
Branch Review js-to-ts-server-2
Run status status check passed Passed #60735
Run duration 18m 29s
Commit git commit 5b78bc4a87: Add changelog entry.
Committer Jennifer Shehane
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 7
Tests that did not run due to a developer annotating a test with .skip  Pending 1232
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 32101
View all changes introduced in this branch ↗︎
UI Coverage  46.44%
  Untested elements 183  
  Tested elements 163  
Accessibility  92.55%
  Failed rules  3 critical   8 serious   2 moderate   2 minor
  Failed elements 877  

https://on.cypress.io/test-retries
`
},
// TODO: test this
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

there is a test for this!

@jennifer-shehane jennifer-shehane changed the title chore: convert server/lib/modes files to ts misc: convert server/lib/modes files to ts + add more cli options to Cloud terminal error outputs Mar 5, 2025
@jennifer-shehane jennifer-shehane merged commit 6bd522b into develop Mar 6, 2025
@jennifer-shehane jennifer-shehane deleted the js-to-ts-server-2 branch March 6, 2025 17:39
@cypress-bot
Copy link
Copy Markdown
Contributor

cypress-bot Bot commented Mar 12, 2025

Released in 14.2.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v14.2.0, please open a new issue.

@cypress-bot cypress-bot Bot locked as resolved and limited conversation to collaborators Mar 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants