-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chore (draft): migrate extension to typescript and tests to vitest #32680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
const result = extension.getPathToV3Extension() | ||
const expected = path.join(cwd, 'dist', 'v3') | ||
|
||
expect(path.normalize(result)).toEqual(path.normalize(expected)) |
There was a problem hiding this comment.
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)
cypress
|
Project |
cypress
|
Branch Review |
chore/extension_migration
|
Run status |
|
Run duration | 18m 21s |
Commit |
|
Committer | Bill Glesias |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
8
|
|
10
|
|
1041
|
|
4
|
|
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%
|
|
---|---|
|
184
|
|
159
|
Accessibility
97.97%
|
|
---|---|
|
4 critical
8 serious
2 moderate
2 minor
|
|
101
|
Tests for review
The first 5 failed specs are shown, see all 598 specs in Cypress Cloud.
commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-chrome
Test | Artifacts | |
---|---|---|
... > stops waiting when an fetch request is canceled |
Test Replay
|
commands/location.cy.js • 1 flaky test • 5x-driver-chrome
Test | Artifacts | |
---|---|---|
... > does not log an additional log on failure |
Test Replay
|
commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox
Test | Artifacts | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
... > stops waiting when an xhr request is canceled |
|
Test | Artifacts | |
---|---|---|
cy.origin- Cypress.config() > serializable > overwrites different values in secondary if one exists in the primary |
Test Replay
|
commands/waiting.cy.js • 2 flaky tests • 5x-driver-chrome:beta
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.
Additional details
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?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.
app/v2
,app/v3
,lib
); add types and exports; remove legacy JS/defs.app-dist/
(app) andlib-dist/
(library); update paths in helpers andgulpfile
..spec.ts
files; remove old JS specs and mocha opts).webpack.config
to ESM, TypeScript entry, and output toapp-dist/v2/background.js
.gulpfile
to use@packages/icons
APIs and yarn build steps; export tasks; new clean/build pipelines.package.json
scripts (build:app/background/lib, vitest), setmain
tolib-dist/index.js
.tsconfig.*.json
) andvitest.config.ts
; ignoreapp-dist/
,lib-dist/
.automation
.@types/webextension-polyfill
.10
to9
.packages/extension
as completed in both phases.Written by Cursor Bugbot for commit 6772100. This will update automatically on new commits. Configure here.