Files
cypress/packages/launcher
Bill Glesias f3b67666a5 fix: update cypress to Typescript 5 (#29568)
* fix: update the monorepo to typescript 5

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* run ci to see problems [run ci]

* update vue-tsc and typings that conflict with update

* regen snapshot

* fix typescript errors ui test as stack trace behavior has changed

* fix server unit tests

* update cy.origin() spec based on stack traces and code frames

* update spec to include source map url

* run ci

* fix check-ts

* chore: fix system tests [run ci]

* add preprocessor tests to batteries included to exercise new logic

* run ci

* refactor unit tests to be a bit more dry

* pin typescript to ~5.4 and adjust config to ignroe deprecations but keep importsNotUsedAsValues

* add changelog entry

* add fixme issue to stack trace mismatches inside evaled context

* use import type webpack as webpack as a lib isn't actually invboked in the runner webpack config

* fix system test as adding 4 lines of comments impacts the stack trace line 4 lines (duh)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2024-06-04 19:17:38 -04:00
..

Launcher

This package finds and launches browsers for each operating system.

Developing

The TypeScript source files are in lib folder.

To see browsers detected on your machine, just run:

node index.js

You can supply a list of binaries to test if they're browsers or not. Try running:

node index.js /bin/bash /usr/bin/chromium-browser

Testing

yarn workspace @packages/launcher test

Debugging

Uses debug to output debug log messages. To turn on, use

DEBUG=cypress:launcher:* yarn workspace @packages/launcher test

Verbose messages, including detailed stdout, are available under cypress-verbose:launcher:*.