* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized
* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized
* Fix SSL certificate verification for cloud requests
Fixed SSL certificate verification for Cypress cloud requests.
* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized
* internal: (studio) do not retry on cert failures
* Update packages/server/test/unit/cloud/api/studio/post_studio_session_spec.ts
Co-authored-by: Matt Schile <mschile@cypress.io>
* Update packages/server/test/unit/cloud/api/studio/post_studio_session_spec.ts
Co-authored-by: Matt Schile <mschile@cypress.io>
* fix types
---------
Co-authored-by: Matt Schile <mschile@cypress.io>
* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized
* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized
* Fix SSL certificate verification for cloud requests
Fixed SSL certificate verification for Cypress cloud requests.
* fix: ensure that all calls to api.cypress.io and cloud.cypress.io properly set rejectUnauthorized
* Update packages/data-context/src/sources/UtilDataSource.ts
* fix tests
* fix tests
* start vitest convertion and convert connect spec to vitest
* chore: convert agent spec to vitest
* chore: convert block spec to vitest
* chore: convert client-certificates test to vitest and remove circular dependency on singletoon in agent and client certificats
* chore: convert the connect spec to vitest
* chore: convert cors spec to vitest
* chore: convert document domain spec to vitest
* chore: convert uri spec to vitest
* chore: cleanup files
* chore: give v8 snapshot action access to make pull requests
* index on v8-action-permissions-update: 9b701df01c chore: give v8 snapshot action access to make pull requests
* index on v8-action-permissions-update: 9b701df01c chore: give v8 snapshot action access to make pull requests
* index on v8-action-permissions-update: 9b701df01c chore: give v8 snapshot action access to make pull requests
---------
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
* chore: dynamically pack the circleci pipeline configuration
The ./scripts/pack-ci.sh is the first workhorse, here. It uses the circleci
cli to pack any subdirectory of `.circleci/src` into a circleci config
using FYAML format. It can pack every subdirectory, a subsection of
subdirs that include changes, and use circleci cli to validate the
packed yml files.
Husky is set up to validate the packed yml file(s) on commit.
The packed yml file(s) should not be committed to source control. They
are build artifacts. They are configured to be ignored by git in
./.circleci/.gitignore.
./.circleci/config.yml is the second major change. This workflow is
modified such that:
- it uses workflow filtering to prevent the workflow from triggering unless at least
one of the following is true:
- the workflow was triggered via api (the 'trigger workflows' button in circleci)
- the branch is `develop`
- the branch is `release/*`
- the branch has an open pull request, and the pull request is not draft
- checks out the repository from the HEAD ref of the pr (the branch with the changes),
and calculates a checksum of the contents of ./.circleci/src. Packed workflow files
are cached by the checksum of the source files that were used to generate the packed
workflow. If the cache is restored, the packed pipeline.yml file is continued. If there
is no cache for the checksum, it uses ./scripts/pack-ci to pack the source yml files
and triggers a continuation with the resulting packed yml file.
* rm packed yml file
* revert to old draft detection :( other way is only avail on github app
* just fail instead of cancelling on drafts, more reliable even if not correct
* just halt, since draft->ready does not already trigger a ci run
* circleci agent -> circleci-agent
* validate main circleci yml file; correct entrypoint for pack workflows job
* workflows -> pipeline
* Update pack-ci.sh - newline at eof
* pass posix exit code to server
* return 1 if any tests fail and posix exit codes are enabled
* changelog
* rm .only
* snapshot
* changelog
* update typedef
* changelog
* Update cli/CHANGELOG.md
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* lift disabled posix system test to different desc block
* add posix-exit-codes in lib/exec/run.ts#processRunOptions
* Apply suggestion from @jennifer-shehane
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
---------
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
* 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
BREAKING CHANGE: @cypress/grep now exports a register function that can be imported from the users spec file. Additionally, the plugin can be imported via @cypress/grep/plugin.
* add husky script to build circleci yml files
* add circleci cli as a required tool for working with .circleci
* break the original workflows.yml file into separate pieces, using circleci config pack to compose them into the main workflows.yml file
* fix pull request workflow def
* more robust precommit for circleci packing
* even nicer stdout for precommit :)
* allow pr pipeline on this branch
* split up the config.yml to demonstrate more fully
* fix conditional on pr pipeline
* exit 1 if circleci cli not found and circleci config files staged for commit
* use linux-x64 executor for unit-tests
* try using ipv6 in contributor with correct executor
* ensure node
* update github action to update browser versions to point to the correct file
* ensure node more times
* fix export
* reduce expected result count
* run full workflow menu on this branch
* bump config class to medium
* index on use-pack-for-circle: a9bcbe87b0 run full workflow menu on this branch
* index on use-pack-for-circle: a9bcbe87b0 run full workflow menu on this branch
* index on use-pack-for-circle: a9bcbe87b0 run full workflow menu on this branch
* revert to small for checkout code in config workflow; remove from multi branch trigger
* fix incorrect conflict resolution for bettersqlite3 changes w/ electron update
* make path to circleci workflows file more explicit, comment why it is that file
---------
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>