Skip to content

Conversation

AtofStryker
Copy link
Contributor

  • Closes

Additional details

converts the cypress.spec.ts, errors.spec.ts and logger.spec.ts to vitest. Also refactors the source code to make it easier to unit test

Steps to test

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker changed the title Chore/misc tests cli chore: convert cypress.spec.ts, errors.spec.ts and logger.spec.ts to vitest. Sep 4, 2025
@AtofStryker AtofStryker self-assigned this Sep 4, 2025
@AtofStryker AtofStryker force-pushed the chore/convert-utils-vitest branch from e85596d to d666571 Compare September 4, 2025 14:45
@AtofStryker AtofStryker marked this pull request as ready for review September 4, 2025 14:47
cursor[bot]

This comment was marked as outdated.

Copy link

cypress bot commented Sep 4, 2025

cypress    Run #65315

Run Properties:  status check failed Failed #65315  •  git commit 0dd146f21e: chore: convert cypress spec to vitest
Project cypress
Branch Review chore/misc_tests_cli
Run status status check failed Failed #65315
Run duration 43m 50s
Commit git commit 0dd146f21e: chore: convert cypress spec to vitest
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 3
Tests that were flaky  Flaky 9
Tests that did not run due to a developer annotating a test with .skip  Pending 1102
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 26518
View all changes introduced in this branch ↗︎
UI Coverage  43.87%
  Untested elements 178  
  Tested elements 143  
Accessibility  97.7%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 110  

Tests for review

Failed  src/gql-components/modals/SelectCloudProjectModal.cy.tsx • 1 failed test • frontend-shared-ct

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay
Failed  cypress/e2e/error-handling.cy.ts • 2 failed tests • launchpad-e2e

View Output

Test Artifacts
... > automatically sources vite.config.js Test Replay Screenshots
... > automatically sources webpack.config.js Test Replay Screenshots
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Test Replay Screenshots
Flakiness  commands/waiting.cy.js • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
... > errors > throws when waiting for 2nd response to route Test Replay
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Test Replay Screenshots
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-chrome:beta

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Test Replay Screenshots
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
... > stops waiting when an xhr request is canceled
    </td>
  </tr></table>

The first 5 flaky specs are shown, see all 9 specs in Cypress Cloud.

@jennifer-shehane jennifer-shehane self-requested a review September 4, 2025 15:21
cursor[bot]

This comment was marked as outdated.

@AtofStryker
Copy link
Contributor Author

gonna move this to draft

@AtofStryker AtofStryker marked this pull request as draft September 4, 2025 15:39
@AtofStryker AtofStryker force-pushed the chore/convert-utils-vitest branch from d666571 to ebe3286 Compare September 4, 2025 16:04
@AtofStryker AtofStryker marked this pull request as ready for review September 4, 2025 16:15
cursor[bot]

This comment was marked as outdated.

import util from './util'
import state from './tasks/state'

// TODO: this package needs to be replaced as we can't import it in vitest
const is = require('check-more-types')
Copy link
Contributor

Choose a reason for hiding this comment

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

Just remove it :D all of these assertions are simple to just have inline.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

after the vitest conversion is done I am planning on doing this. This can be made a lot simpler

Base automatically changed from chore/convert-utils-vitest to feature/cli_to_vitest September 5, 2025 16:36
@AtofStryker AtofStryker merged commit ee38e76 into feature/cli_to_vitest Sep 5, 2025
6 of 9 checks passed
@AtofStryker AtofStryker deleted the chore/misc_tests_cli branch September 5, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants