From 41623ed0e57c290d9a275cd41edbe0962e5630bd Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Fri, 1 Nov 2024 10:46:39 -0400 Subject: [PATCH] chore: remove deprecated system test execOptions (#30478) * chore: remove deprecated system test execOptions * empty commit --- system-tests/lib/system-tests.ts | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/system-tests/lib/system-tests.ts b/system-tests/lib/system-tests.ts index e5566d2708b7..23f5e20efa56 100644 --- a/system-tests/lib/system-tests.ts +++ b/system-tests/lib/system-tests.ts @@ -79,16 +79,6 @@ type ExecOptions = { * If set, test using the built Cypress CLI and binary. Expects a built CLI in `/cli/build` and packed binary in `/cypress.zip`. */ withBinary?: boolean - /** - * Deprecated. Use `--cypress-inspect-brk` from command line instead. - * @deprecated - */ - inspectBrk?: null - /** - * Deprecated. Use `--no-exit` from command line instead. - * @deprecated - */ - exit?: null /** * Don't exit when tests are finished. You can also pass `--no-exit` via the command line. */ @@ -629,14 +619,6 @@ const systemTests = { }, options (ctx, options: ExecOptions) { - if (options.inspectBrk != null) { - throw new Error(` - passing { inspectBrk: true } to system test options is no longer supported - Please pass the --cypress-inspect-brk flag to the test command instead - e.g. "yarn test async_timeouts_spec.js --cypress-inspect-brk" - `) - } - _.defaults(options, { browser: process.env.SNAPSHOT_BROWSER || 'electron', headed: process.env.HEADED || false, @@ -648,19 +630,10 @@ const systemTests = { sanitizeScreenshotDimensions: false, normalizeStdoutAvailableBrowsers: true, noExit: process.env.NO_EXIT, - inspectBrk: process.env.CYPRESS_INSPECT_BRK, }) const projectPath = Fixtures.projectPath(options.project) - if (options.exit != null) { - throw new Error(` - passing { exit: false } to system test options is no longer supported - Please pass the --no-exit flag to the test command instead - e.g. "yarn test async_timeouts_spec.js --no-exit" - `) - } - if (options.noExit && options.timeout < 3000000) { options.timeout = 3000000 } @@ -770,10 +743,6 @@ const systemTests = { args.push('--no-exit') } - if (options.inspectBrk) { - args.push('--inspect-brk') - } - if (options.tag) { args.push(`--tag=${options.tag}`) }