From d1486f597369faacb2bb5f66a7d2a69082f45d40 Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Mon, 15 Apr 2024 12:08:10 -0700 Subject: [PATCH] chore: update integration tests --- turborepo-tests/integration/tests/bad-flag.t | 2 +- .../integration/tests/conflicting-flags.t | 32 ++----------------- turborepo-tests/integration/tests/no-args.t | 8 ----- .../integration/tests/turbo-help.t | 16 ---------- 4 files changed, 4 insertions(+), 54 deletions(-) diff --git a/turborepo-tests/integration/tests/bad-flag.t b/turborepo-tests/integration/tests/bad-flag.t index 8588d75503c65..0fb9de1a3dcf8 100644 --- a/turborepo-tests/integration/tests/bad-flag.t +++ b/turborepo-tests/integration/tests/bad-flag.t @@ -19,7 +19,7 @@ Bad flag with an implied run command should display run flags tip: to pass '--bad-flag' as a value, use '-- --bad-flag' - Usage: turbo(\.exe)? <--cache-dir |--cache-workers |--concurrency |--continue|--dry-run []|--single-package|--filter |--force []|--framework-inference []|--global-deps |--graph []|--env-mode []|--ignore |--include-dependencies|--no-cache|--no-daemon|--no-deps|--output-logs |--log-order |--only|--parallel|--pkg-inference-root |--profile |--remote-only []|--scope |--since |--summarize []|--log-prefix |TASKS|PASS_THROUGH_ARGS|--experimental-space-id > (re) + Usage: turbo(\.exe)? <--cache-dir |--cache-workers |--concurrency |--continue|--dry-run []|--single-package|--filter |--force []|--framework-inference []|--global-deps |--graph []|--env-mode []|--ignore |--no-cache|--no-daemon|--output-logs |--log-order |--only|--parallel|--pkg-inference-root |--profile |--remote-only []|--summarize []|--log-prefix |TASKS|PASS_THROUGH_ARGS|--experimental-space-id > (re) For more information, try '--help'. diff --git a/turborepo-tests/integration/tests/conflicting-flags.t b/turborepo-tests/integration/tests/conflicting-flags.t index e293c65f8d198..8b587b27dd88c 100644 --- a/turborepo-tests/integration/tests/conflicting-flags.t +++ b/turborepo-tests/integration/tests/conflicting-flags.t @@ -8,38 +8,12 @@ Setup For more information, try '--help'. [1] - $ ${TURBO} run build --since main - ERROR the following required arguments were not provided: - --scope - - Usage: turbo(\.exe)? run --scope --since (re) - - For more information, try '--help'. - - [1] + $ ${TURBO} run build --ignore 'app/**' ERROR the following required arguments were not provided: - <--filter |--scope > - - Usage: turbo(\.exe)? run --ignore <--filter |--scope > (re) - - For more information, try '--help'. - - [1] - $ ${TURBO} run build --no-deps - ERROR the following required arguments were not provided: - --scope - - Usage: turbo(\.exe)? run --scope --no-deps (re) - - For more information, try '--help'. - - [1] - $ ${TURBO} run build --include-dependencies - ERROR the following required arguments were not provided: - --scope + <--filter > - Usage: turbo(\.exe)? run --scope --include-dependencies (re) + Usage: turbo(\.exe)? run --ignore <--filter > (re) For more information, try '--help'. diff --git a/turborepo-tests/integration/tests/no-args.t b/turborepo-tests/integration/tests/no-args.t index 152ac332f9d78..6be57317db936 100644 --- a/turborepo-tests/integration/tests/no-args.t +++ b/turborepo-tests/integration/tests/no-args.t @@ -65,16 +65,8 @@ Make sure exit code is 2 when no args are passed Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json. Use "infer" to defer to existence of "passThroughEnv" or "globalPassThroughEnv" in turbo.json. (default infer) [default: infer] [possible values: infer, loose, strict] -F, --filter Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter - --scope - DEPRECATED: Specify package(s) to act as entry points for task execution. Supports globs --ignore Files to ignore when calculating changed files from '--filter'. Supports globs - --since - DEPRECATED: Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed - --include-dependencies - DEPRECATED: Include the dependencies of tasks in execution - --no-deps - DEPRECATED: Exclude dependent task consumers from execution --no-cache Avoid saving task results to the cache. Useful for development/watch tasks --daemon diff --git a/turborepo-tests/integration/tests/turbo-help.t b/turborepo-tests/integration/tests/turbo-help.t index 3619cf9a271fb..d0a01347b1d5c 100644 --- a/turborepo-tests/integration/tests/turbo-help.t +++ b/turborepo-tests/integration/tests/turbo-help.t @@ -65,16 +65,8 @@ Test help flag Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json. Use "infer" to defer to existence of "passThroughEnv" or "globalPassThroughEnv" in turbo.json. (default infer) [default: infer] [possible values: infer, loose, strict] -F, --filter Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter - --scope - DEPRECATED: Specify package(s) to act as entry points for task execution. Supports globs --ignore Files to ignore when calculating changed files from '--filter'. Supports globs - --since - DEPRECATED: Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed - --include-dependencies - DEPRECATED: Include the dependencies of tasks in execution - --no-deps - DEPRECATED: Exclude dependent task consumers from execution --no-cache Avoid saving task results to the cache. Useful for development/watch tasks --daemon @@ -170,16 +162,8 @@ Test help flag Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json. Use "infer" to defer to existence of "passThroughEnv" or "globalPassThroughEnv" in turbo.json. (default infer) [default: infer] [possible values: infer, loose, strict] -F, --filter Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter - --scope - DEPRECATED: Specify package(s) to act as entry points for task execution. Supports globs --ignore Files to ignore when calculating changed files from '--filter'. Supports globs - --since - DEPRECATED: Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed - --include-dependencies - DEPRECATED: Include the dependencies of tasks in execution - --no-deps - DEPRECATED: Exclude dependent task consumers from execution --no-cache Avoid saving task results to the cache. Useful for development/watch tasks --daemon