Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_all_skipped"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--no-fmt", "--no-lint"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_config_flag_precedence"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--no-fmt"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_config_no_fmt"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_config_no_lint"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_fail_fast"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_fix_lint_warn"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--fix"], continue-on-failure = true },
{ argv = ["vp", "check"], continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_fix_no_fmt_no_lint_typecheck"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--fix", "--no-fmt", "--no-lint"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_fix_no_lint_typecheck"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--fix", "--no-lint"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_fix_no_lint_typecheck_fail"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--fix", "--no-lint"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_fmt_fail"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
{ argv = ["vp", "check", "--fix"], continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_lint_fail"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_lint_fail_no_typecheck"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_lint_fail_typecheck"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_lint_warn"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_lint_warn_deny_warnings"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_no_fmt"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--no-fmt"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_no_fmt_no_lint_typecheck"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--no-fmt", "--no-lint"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_no_lint"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--no-lint"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_no_lint_typecheck"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--no-lint"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_no_lint_typecheck_fail"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check", "--no-lint"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_pass"
vp = "local"
env = { "VITE_DISABLE_AUTO_INSTALL" = "1" }
steps = [
["vp", "check"],
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_pass_no_typecheck"
vp = "local"
env = { "VITE_DISABLE_AUTO_INSTALL" = "1" }
steps = [
["vp", "check"],
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_pass_typecheck"
vp = "local"
env = { "VITE_DISABLE_AUTO_INSTALL" = "1" }
steps = [
["vp", "check"],
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[[case]]
name = "check_pass_typecheck_github_actions"
vp = "local"
env = { "GITHUB_ACTIONS" = "true", "VITE_DISABLE_AUTO_INSTALL" = "1" }
env = { "GITHUB_ACTIONS" = "true" }
steps = [
["vp", "check"],
]
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "check_vitest_globals_typecheck"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "check"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "command_exec_monorepo"
vp = "local"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "exec", "-r", "--", "node", "-e", "console.log(process.env.VP_PACKAGE_NAME)"], comment = "recursive exec with env var", continue-on-failure = true },
{ argv = ["vp", "exec", "--filter", "app-*", "--", "node", "-e", "console.log(process.env.VP_PACKAGE_NAME)"], comment = "glob filter", continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "command_exec_monorepo_filter_v2"
vp = "local"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "exec", "-F", "app-a", "--", "echo", "hello"], comment = "-F short flag for --filter", continue-on-failure = true },
{ argv = ["vp", "exec", "-F", "app-a", "-F", "lib-c", "--", "echo", "hello"], comment = "-F short flag multiple", continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "command_exec_monorepo_order"
vp = "local"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "exec", "-r", "--", "node", "-e", "console.log(process.env.VP_PACKAGE_NAME)"], comment = "recursive: topological order", continue-on-failure = true },
{ argv = ["vp", "exec", "--filter", "app-web...", "--", "node", "-e", "console.log(process.env.VP_PACKAGE_NAME)"], comment = "filter with transitive deps", continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "command_init_inline_config"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "lint", "--init"], continue-on-failure = true },
{ argv = ["vpt", "print-file", "vite.config.ts"], continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[[case]]
name = "command_init_inline_config_existing"
vp = "local"
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "lint", "--init"], continue-on-failure = true },
{ argv = ["vpt", "stat-file", ".oxlintrc.json", "--assert-not", "file"], comment = "check .oxlintrc.json is not created", continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "command_pack_exe"
vp = "global"
skip-platforms = ["windows", { os = "linux", libc = "musl" }]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "pack", "src/index.ts", "--exe"], continue-on-failure = true },
{ argv = ["vpt", "list-dir", "dist"], continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "command_pack_exe_error"
vp = "global"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "pack", "src/index.ts", "--exe"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "command_pack_no_input"
vp = "local"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "pack"], comment = "should not mention tsdown in error", continue-on-failure = true },
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name = "command_run_argument_order"
vp = "local"
local-registry = true
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
steps = [
{ argv = ["vp", "run", "-r", "hello"], comment = "new syntax: -r before task, runs recursively", continue-on-failure = true },
{ argv = ["vp", "run", "hello", "-r"], tty = false, comment = "old syntax: -r after task, passed through as arg", continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "migration_framework_shim_astro"
vp = "global"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
unset-env = ["CI", "VP_SKIP_INSTALL"]
local-registry = true
steps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "migration_framework_shim_astro_vue"
vp = "global"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
unset-env = ["CI", "VP_SKIP_INSTALL"]
local-registry = true
steps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "migration_framework_shim_vue"
vp = "global"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
unset-env = ["CI", "VP_SKIP_INSTALL"]
local-registry = true
steps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "migration_standalone_npm"
vp = "global"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
unset-env = ["CI", "VP_SKIP_INSTALL"]
local-registry = true
steps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "migration_standalone_pnpm"
vp = "global"
skip-platforms = ["windows"]
env = { VITE_DISABLE_AUTO_INSTALL = "1" }
unset-env = ["CI", "VP_SKIP_INSTALL"]
local-registry = true
steps = [
Expand Down
3 changes: 0 additions & 3 deletions rfcs/exec-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,6 @@ command-exec-pnpm10/

```json
{
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
"commands": [
"vp exec echo hello # basic exec, no vite-plus dep (global CLI handles directly)",
"vp exec node -e \"console.log('hi')\" # exec with args passthrough",
Expand Down
2 changes: 1 addition & 1 deletion rfcs/interactive-snapshot-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ local-registry = false # optional; serve checkout packages
seed-runtime = true # default; symlink a provisioned managed JS
# runtime into the case VP_HOME (false for
# runtime-provisioning tests)
env = { VITE_DISABLE_AUTO_INSTALL = "1" } # optional; case-wide env additions
env = { CUSTOM_ENV = "value" } # optional; case-wide env additions
unset-env = ["GITHUB_ACTIONS"] # optional; remove from the baseline env
steps = [ ... ]
after = [ ... ] # optional cleanup steps, never snapshotted
Expand Down
Loading