Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: lifts toPosix to its own file, removes circular dependency between stack_utils and source_map_utils #30983

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

cacieprins
Copy link
Contributor

  • Closes

Additional details

Lifts the function from stack_utils that source_map_utils was using to its own file. This enables the removal of the stack_utils.ts <-> source_map_utils cycle. Vitest unit tests are added as well.

This utility is recreated several times across the repo. Perhaps a single third party npm package, like unixify or normalize-path would be helpful.

Steps to test

How has the user experience changed?

PR Tasks

@cacieprins cacieprins marked this pull request as ready for review January 30, 2025 17:22
Copy link

cypress bot commented Jan 30, 2025

cypress    Run #60305

Run Properties:  status check passed Passed #60305  •  git commit c9ea2d1e98: Merge branch 'develop' into cacie/refactor/stack-sourcemap-circular
Project cypress
Branch Review cacie/refactor/stack-sourcemap-circular
Run status status check passed Passed #60305
Run duration 17m 44s
Commit git commit c9ea2d1e98: Merge branch 'develop' into cacie/refactor/stack-sourcemap-circular
Committer Cacie Prins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 11
Tests that did not run due to a developer annotating a test with .skip  Pending 1099
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 26546
View all changes introduced in this branch ↗︎
UI Coverage  45.43%
  Untested elements 192  
  Tested elements 164  
Accessibility  92.55%
  Failed rules  3 critical   8 serious   2 moderate   2 minor
  Failed elements 890  

@jennifer-shehane
Copy link
Member

@cacieprins Hmm, a lot of weird failures on this one https://cloud.cypress.io/projects/ypt4pf/runs/60150/overview

@cacieprins
Copy link
Contributor Author

@cacieprins Hmm, a lot of weird failures on this one https://cloud.cypress.io/projects/ypt4pf/runs/60150/overview

Bizarre.. I'll table this refactor for now

@cacieprins cacieprins marked this pull request as draft January 30, 2025 18:36
@cacieprins cacieprins marked this pull request as ready for review February 5, 2025 16:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants