* start jest conversion and covnert authaction to jest
* chore: conver codegenaction to jest
* chore: convert cohorts action spec to vitest
* chore: convert dataEmitterActions to jest
* chore: convert event collector action to vitest
* chore: convert local settings action spec tojest
* chore: convert notification action to vitest
* chor: convert project actions to vitest and fix pretty-formnat
* chore: convert code-generator spec to jest
* chore: convert spec options spec to jest
* chore: convert project config ipc to jest
* chore: convert projectconfigmanager tests to jest
* chore: convert project lifecycle manager tests to jest
* chore: conver poller spec to jest
* chore: convert browser data source to jest
* chore: convert cloud dats source to jest
* chore: convert gitdatasource unit tests to jest
* chore: convert FileDataSource to jest
* chore: convert git data source to jest
* chore: convert graphql data source to jest
* chore: convert project data source to jest
* chore: convert revelvant runs data source to jest
* chore: convert relevant run specs data source to jest
* chore: convert remote request data source to jest
* chore: convert versions data source spec to jest
* chore: convert wizard data source spec to jest
* chore: convert document node builder to jest
* chore: convert has TypeScript to jest
* chore: convert test counts spec to jest
* chore: convert weighted choice spec to jest
* chore: convert config file updater to jest
* clean up files to allow tests to run in band but out of order, add README, cleanup unused scripts and dependencies
* fix deprecation warning from ts-jest via isolated modules
* chore: adjust expected result count
* chore: clean up types
* turn back on no implicit any and reinstall graphql package in frontend shared
* fix isFocusSupported mock
* chore: copy over the old data-context-helper into the server as the one in the data-context package is written in jest now
* chore: fix code review findings from cursor
* fix incorrect expect async throw
* chore: remove use of this in projectData source
* add docs to copied data-context helper and fix cursor detected issue
* fix: ensure that code frames within cy.origin point to the right line of the code
* additional tests
* additional tests
* changelog
* Apply suggestions from code review
* Update system-tests/projects/e2e/cypress/e2e/cy_origin_error.cy.ts
* fix tests
* fix tests
* clean up
* chore: start vitest conversion and convertsupportFile to vitest
* chore: convert frameworks spec to vitest
* chore: convert detect spec to vitest
* chore: convert ct-detect-third-party spec to vitest
* chore: convert component index template to vitest
* chore: clean up scaffold-config as tests are now converted to vitest
* fix issue where projectRoot was passed inncorrectly in test
* start vitest convertion and convert errors spec to vitest
* chore: convert errTemplate to vitest
* convert stripIndent to vitest
* convert the visualsnapshoterrors spec to vitest
* chore: clean up errors package, update guide, and move snapshots
* move tests out of unit test directory as most tests are integration tests
* add to esm checklist and update workflow
* clean build and rebuild after test due to CI having built files
* Chore: fix bad test assertion in error spec
* Update guides/esm-migration.md
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* chore: remove unused FIREFOX_CDP_FAILED_TO_CONNECT error as it is no longer used and likely missed with the CDP removal for Firefox
* chore: fix missed imports
* remove system test code to check for CDP error in firefox
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* chore: replace dtslint with eslint-plugin-expect-type
* update guide
* add lint-staged
* rm stale script
* modify cli eslint and tsconfigs to support ts migration
* separate expect-type files
* modifications to tsconfigs to make eslint a little easier
* revert workflow.yml
* further revision
* put tslint config for dtslint back in
* ensure false negative case is tested
* correct tsconfigs
* align dtslint tsconfig with eslint 9 config
* consolidate / DRY tsconfigs
* chore(deps): update dependency electron to v36.8.1
* bump node version
* update workflow files + publish-binary script
* bump base-internal images
* remove current node version from additional test
* bump circleci cache
* allow node_version env var
* Update .circleci/workflows.yml
* index on renovate/electron-36.x: 95d10b1d53 Merge branch 'develop' into renovate/electron-36.x
* index on renovate/electron-36.x: 95d10b1d53 Merge branch 'develop' into renovate/electron-36.x
* index on renovate/electron-36.x: 95d10b1d53 Merge branch 'develop' into renovate/electron-36.x
* bump types/node
* update some node versions
* update integrity check and electron instrcutions
* correctly call net.family with net family type
* Revert "correctly call net.family with net family type"
This reverts commit 505ff949a8.
* update location of note types
* more clearly type frame
* fix type issues in agent.ts file
* fix agent call
* replace proxyquire in webpack-dev-server package
* add changelog
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
* consolidate electron files into one dir
* extract open() from electron.ts, add coverage, remove stderr filtering in dev env
* fix build after dir mod
* ...
* make behavior of paths a little more predictable, add tests
* changelog
* inf loop
* changelog
* changelog
* changelog
* decrease expected mocha result count by 1, bc electron package had empty mocha tests
* use vi.stubEnv
* missed one
* reduce exepected mocha result count
* fix tsconfig.esm.json
* chore: align on vitest versions across the repo, add project vitest config
* Apply suggestion from @cacieprins
* Apply suggestion from @cacieprins
* Apply suggestion from @cacieprins
* Apply suggestion from @cacieprins
* Update package.json
* lockfile, align vite with vitest
* add vitest configs to pkgs that were missing it
* update build scripts
* fix test pattern for vite-dev-server
* correct the path for packages/types tests
* downgrade vite-dev-server to vitest 2
* bump node types
* add network tests to terminals
* dont use the web-config, just use regular TS so that it compiles much faster and line numbers work
* fix missing promise
* cache families to include host + port; fix types
* fix incorrect cacheKey
* fix skipped tests and updated error messages likely due to node upgrade
* cleanup a ton of test context
* Add changelog entry
* close servers after each test
* Update packages/network/lib/agent.ts
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* update tests to pass inside + outside of docker
* try this in docker
* try to enable ipv6 in circleci docker config
* escape
* dont run this test in CI
* revert
* skip the other test
* maybe this works
* try this
* Update .circleci/workflows.yml
* oops
* i do not think we need sudo
* test
* test
* try machine
* refactor
* that was weird
* that was weird
* mess with daemon and sudo
* escape <
* modify /etc/hosts
* Update .circleci/workflows.yml
* Update .circleci/workflows.yml
* Update .circleci/workflows.yml
* remove dead code
* Update branch condition in CircleCI workflow
* Update .circleci/workflows.yml
* clean up
* clean up
* fix cy in cy tests
* fix cy in cy
* Update packages/server/lib/server-base.ts
---------
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* migrates electron pkg to typescript
* build multi platform binaries on this branch
* Update packages/electron/BUILD.md
* Update packages/electron/BUILD.md
* Update packages/electron/BUILD.md
* update docs
* lint
* Update .circleci/workflows.yml
* Update .circleci/workflows.yml
* fix inverted fuse logic
* convert buffer to Uint8Array before hashing
* use pipeline to simplify
* fix ide error display of disabled rule
* rm redundant md
* fix error handling / exit code
* update docs for cli params
* fix async try/catch
* re-apply obfuscated requires ...
* improve readability, correct debug output regarding access vs stat
* flip fuses the right way again
* move back to some fs-extra, clean up dist a little better
* correct normalization for paths
* icons path
* exit(1) on electron signal>=1
* Update packages/electron/lib/electron.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* chore: convert browsers_spec from JS to TS
* Update packages/server/test/unit/browsers/browsers_spec.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* chore: improve performance of server unit-tests
* update screenshots spec to run faster
* improve timing of more server unit tests
* revert the project spec changes
* fix path resolutions
* chore: convert server/lib/plugins files from JS to TS
* consolidate error types
* update anys to unknowns where we don't know the args
* add module esports
* forgot to push this I guess
* Update so this isn't always true
* add some utils to a JS file
* remove duplicate ts file
* remove dead code
* remove module.exports = API
* chore: fix exports of run events and adapt CJS tests importing TS modules to use the default export
* fix another preprocessor default call
---------
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* migrate cli scripts to TypeScript
* convert all javascript source files in the CLI to TypeScript
rebase into first
* chore: refactor all tests to TypeScript
rebase into second
* add npmignore for cli for typescript files
* update build process
* fix publically available exports
* Fix cy-in-cy tests
* add ts-expect-error to failing files
* fix projectConfigIpc failures as there are now multiple installs of tsx
* fix after-pack hook
* fix binary script
* chore: update publish binary to account for CLI being an ESModule compiled down to CommonJS
* does this work?
* fix the verify spec by making the listr2 renderer silent as it behaves differently since the refactor and is printing non deterministic outputs into our tests that do not have a large impact on the area we are testing and mostly served to actually test the renders of the listr2 framework itself
* empty commit
* additional refactor to code to remove strange any typing and exporting
* bump cache and build binaries
* fix CLI exports to keep backwards compatibility
* fix unit-tests
* turn on mac jobs
* fix group name rename in CLI
* remove babel deps from cli and explicitly install typescript
* address feedback from code review
* dont just falsy check results and instead explicitly check for null or undefined
* add ts-expect-error
* additional pass on cleaning up dynamic require / import from global lib references
* annotate ts-expect-errors with reason for why error is expected
* add rest of ts-expect-error comments
* removing hardcoded branch to publish binary chore/migrate_cli_to_typescript
* fix: allow for spaces to be present in the tsx loader path so node can discover the loader. We do this by wrapping the path in quotes
* chore: add rimraf to fix contributors on windows when cleaning the stderr-filtering package
* feat: extend Cypress.Keyboard.Keys and cy.press to support all keyboard keys
* Update cli/types/cypress.d.ts
* reference urls for codepoints
* type defs for expanded keys; tests
* changelog
* rm modifier keys temporarily - see WIP @ feat/key-press-modifier-keys
* Add pr link to changelog
* reduce repetition with key codes; remove unsupported capslock keycode
* only "key" special function keys in Cypress.Keyboard.Keys - otherwise, support any single character even if multiple codepoints
* do not refocus on f6 - f6 behavior keyup is indeterminate, so do not assert in that special case
* clean up keyboard key types, clean up duplicate def from merge
* various cleanup - wip - need multi-codepoint fix
* support multi-codepoint characters
* properly dispatch each part of a multipart utf-8 character
* fix import
* fix dtslint
* tscheck
* fix spacing
* Apply suggestions from code review
* changelog
* changelog
* ensure input actions are released in bidi; add test for keypress and input events for firefox
* fix keypress & input events in chrome
* consistent debug
* rm debug logging from input fixture
* some typos, changelog version
* fix toSupportedKey guard fn to properly reject non-strings
* add Space as named key, remove warnings re legacy firefox
* fix space
* support single-digit number keys
* remove support for F-keys
* add test cmd to types pkg
* rm failing vitest project config
* fix changelog
* clean up types a bit for single digit numbers
* more updates
---------
Co-authored-by: Cacie Prins <cacie@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>