Skip to content

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Oct 9, 2025

  • Closes

Additional details

Steps to test

How has the user experience changed?

PR Tasks


Note

Migrates @packages/extension to TypeScript with Vitest tests, updates build outputs to app-dist/lib-dist, revamps webpack/gulp configs, and adjusts CI/docs.

  • packages/extension:
    • Convert source to TypeScript (app/v2, app/v3, lib); add types and exports; remove legacy JS/defs.
    • New build outputs: app-dist/ (app) and lib-dist/ (library); update paths in helpers and gulpfile.
    • Replace Mocha/Sinon/Chai tests with Vitest (new .spec.ts files; remove old JS specs and mocha opts).
    • Update webpack.config to ESM, TypeScript entry, and output to app-dist/v2/background.js.
    • Revise gulpfile to use @packages/icons APIs and yarn build steps; export tasks; new clean/build pipelines.
    • Update package.json scripts (build:app/background/lib, vitest), set main to lib-dist/index.js.
    • Add TS configs (tsconfig.*.json) and vitest.config.ts; ignore app-dist/, lib-dist/.
  • Runtime/Types:
    • Add explicit typings in background/content/service-worker; export automation.
    • Adjust socket browser code with TS directives; add @types/webextension-polyfill.
  • CI/Docs:
    • CircleCI: update expected mocha results from 10 to 9.
    • ESM migration guide: mark packages/extension as completed in both phases.

Written by Cursor Bugbot for commit 6772100. This will update automatically on new commits. Configure here.

const result = extension.getPathToV3Extension()
const expected = path.join(cwd, 'dist', 'v3')

expect(path.normalize(result)).toEqual(path.normalize(expected))
Copy link

Choose a reason for hiding this comment

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

Bug: Path Resolution Update Breaks Unit Tests

The getPathToExtension and getPathToV3Extension functions now resolve paths to app-dist instead of dist. This change causes their unit tests to fail and may break existing functionality that expects extension files in the dist directory.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link

cypress bot commented Oct 9, 2025

cypress    Run #66321

Run Properties:  status check failed Failed #66321  •  git commit 67721006d9: update mocha test count
Project cypress
Branch Review chore/extension_migration
Run status status check failed Failed #66321
Run duration 18m 21s
Commit git commit 67721006d9: update mocha test count
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 8
Tests that were flaky  Flaky 10
Tests that did not run due to a developer annotating a test with .skip  Pending 1041
Tests that did not run due to a failure in a mocha hook  Skipped 4
Tests that passed  Passing 21487
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  45.69%
  Untested elements 184  
  Tested elements 159  
Accessibility  97.97%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 101  

Tests for review

Failed  e2e/origin/commands/cookies.cy.ts • 0 failed tests • 5x-driver-electron

View Output

Test Artifacts
Failed  e2e/origin/cypress_api.cy.ts • 0 failed tests • 5x-driver-electron

View Output

Test Artifacts
Failed  e2e/service-worker.cy.js • 0 failed tests • 5x-driver-electron

View Output

Test Artifacts
Failed  e2e/origin/yield.cy.ts • 0 failed tests • 5x-driver-electron

View Output

Test Artifacts
Failed  issues/1244.cy.js • 0 failed tests • 5x-driver-electron

View Output

Test Artifacts

The first 5 failed specs are shown, see all 598 specs in Cypress Cloud.

Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
... > stops waiting when an fetch request is canceled Test Replay
Flakiness  commands/location.cy.js • 1 flaky test • 5x-driver-chrome

View Output

Test Artifacts
... > does not log an additional log on failure Test Replay
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>
Flakiness  e2e/origin/config_env.cy.ts • 1 flaky test • 5x-driver-inject-document-domain-chrome

View Output

Test Artifacts
cy.origin- Cypress.config() > serializable > overwrites different values in secondary if one exists in the primary Test Replay
Flakiness  commands/waiting.cy.js • 2 flaky tests • 5x-driver-chrome:beta

View Output

Test Artifacts
... > errors > throws when route is never resolved Test Replay
... > errors > throws when waiting for 2nd response to route Test Replay

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

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.

1 participant