From a86e3725479342647310d4e1b3273def71683b5a Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Sun, 10 Nov 2024 11:25:42 -0600 Subject: [PATCH] test: updated snapshots --- src/cli/alias/get.rs | 4 +- src/cli/alias/ls.rs | 8 ++-- src/cli/alias/set.rs | 4 +- src/cli/alias/unset.rs | 4 +- src/cli/asdf.rs | 8 ++-- ...i__backends__ls__tests__backends_list.snap | 1 + src/cli/bin_paths.rs | 4 +- src/cli/cache/clear.rs | 8 +--- src/cli/config/ls.rs | 4 +- src/cli/config/set.rs | 2 +- ...li__config__generate__tests__generate.snap | 1 + ...se__cli__config__get__tests__toml_get.snap | 1 + ...li__config__ls__tests__config_ls_json.snap | 1 + ...i__direnv__envrc__tests__direnv_envrc.snap | 1 + ...git_pre_commit__tests__git_pre_commit.snap | 1 + ...commit__tests__git_pre_commit_write-2.snap | 1 + ...e_commit__tests__git_pre_commit_write.snap | 1 + ...__github_action__tests__github_action.snap | 1 + ..._action__tests__github_action_write-2.snap | 1 + ...ub_action__tests__github_action_write.snap | 1 + src/cli/link.rs | 4 +- src/cli/ls.rs | 32 +++++++------- ..._cli__plugins__ls__tests__plugin_list.snap | 1 + ...__plugins__ls__tests__plugin_list_all.snap | 1 + src/cli/run.rs | 8 +--- src/cli/settings/get.rs | 2 +- ...__cli__asdf__tests__fake_asdf_install.snap | 1 + ...e__cli__asdf__tests__fake_asdf_reshim.snap | 1 + ..._cli__deactivate__tests__deactivate-2.snap | 1 + ...e__cli__deactivate__tests__deactivate.snap | 1 + .../mise__cli__env__tests__env_json.snap | 1 + .../mise__cli__exec__tests__exec_fail.snap | 1 + .../mise__cli__global__tests__global-2.snap | 1 + .../mise__cli__global__tests__global-3.snap | 1 + .../mise__cli__global__tests__global-4.snap | 1 + .../mise__cli__global__tests__global-5.snap | 1 + .../mise__cli__global__tests__global-6.snap | 1 + .../mise__cli__global__tests__global.snap | 1 + ..._cli__install__tests__install_nothing.snap | 1 + ...i__install__tests__install_with_alias.snap | 1 + .../mise__cli__latest__tests__latest.snap | 1 + ...li__latest__tests__latest_asdf_format.snap | 1 + ..._cli__latest__tests__latest_installed.snap | 1 + ..._latest__tests__latest_missing_plugin.snap | 1 + ...se__cli__latest__tests__latest_system.snap | 1 + ...cli__local__tests__local_alias_prefix.snap | 1 + ...e__cli__local__tests__local_alias_ref.snap | 1 + ...cli__local__tests__local_alias_system.snap | 1 + ...cal__tests__local_multiple_versions-2.snap | 1 + ...cal__tests__local_multiple_versions-3.snap | 1 + ...local__tests__local_multiple_versions.snap | 1 + ...se__cli__local__tests__local_remove-2.snap | 1 + ...se__cli__local__tests__local_remove-3.snap | 1 + ...mise__cli__local__tests__local_remove.snap | 1 + .../mise__cli__ls__tests__ls_json-2.snap | 1 + .../mise__cli__ls__tests__ls_json.snap | 1 + .../mise__cli__outdated__tests__outdated.snap | 1 + ...tdated__tests__outdated_with_runtimes.snap | 1 + ...i__r#where__tests__where_asdf_style-2.snap | 1 + ...cli__r#where__tests__where_asdf_style.snap | 1 + .../mise__cli__set__tests__env_vars-3.snap | 1 + .../mise__cli__set__tests__env_vars-5.snap | 1 + ...e__cli__set__tests__env_vars_remove-3.snap | 1 + ...e__cli__set__tests__env_vars_remove-6.snap | 1 + .../mise__cli__set__tests__show_env_vars.snap | 1 + .../mise__cli__shell__tests__shell.snap | 1 + .../mise__cli__trust__tests__trust-2.snap | 1 + .../mise__cli__trust__tests__trust-3.snap | 1 + .../mise__cli__trust__tests__trust-4.snap | 1 + .../mise__cli__trust__tests__trust-5.snap | 1 + .../mise__cli__trust__tests__trust.snap | 1 + ...se__cli__unset__tests__unset_remove-4.snap | 1 + .../mise__cli__upgrade__tests__upgrade.snap | 1 + ...se__cli__upgrade__tests__upgrade_bump.snap | 1 + .../mise__cli__which__tests__which.snap | 1 + ...mise__cli__which__tests__which_plugin.snap | 1 + .../mise__cli__which__tests__which_tool.snap | 1 + ...ise__cli__which__tests__which_version.snap | 1 + src/cli/tasks/deps.rs | 8 ++-- src/cli/tasks/ls.rs | 4 +- ..._tasks__info__tests__task_info_json-2.snap | 1 + ...i__tasks__info__tests__task_info_json.snap | 1 + ...__cli__tasks__ls__tests__task_ls_json.snap | 1 + ...sks__ls__tests__task_ls_json_extended.snap | 1 + src/config/config_file/mise_toml.rs | 42 +++++++++---------- ..._config_file__mise_toml__tests__env-2.snap | 1 + ..._config_file__mise_toml__tests__env-3.snap | 1 + ..._config_file__mise_toml__tests__env-4.snap | 1 + ...fig_file__mise_toml__tests__fixture-2.snap | 1 + ...fig_file__mise_toml__tests__fixture-3.snap | 1 + ...fig_file__mise_toml__tests__fixture-4.snap | 1 + ...fig_file__mise_toml__tests__fixture-5.snap | 1 + ...onfig_file__mise_toml__tests__fixture.snap | 1 + ...ile__mise_toml__tests__remove_alias-2.snap | 1 + ...ile__mise_toml__tests__remove_alias-3.snap | 1 + ...ile__mise_toml__tests__remove_alias-4.snap | 1 + ..._file__mise_toml__tests__remove_alias.snap | 1 + ...le__mise_toml__tests__remove_plugin-2.snap | 1 + ...le__mise_toml__tests__remove_plugin-3.snap | 1 + ...le__mise_toml__tests__remove_plugin-4.snap | 1 + ...file__mise_toml__tests__remove_plugin.snap | 1 + ..._mise_toml__tests__replace_versions-2.snap | 1 + ..._mise_toml__tests__replace_versions-3.snap | 1 + ..._mise_toml__tests__replace_versions-4.snap | 1 + ...e__mise_toml__tests__replace_versions.snap | 1 + ...g_file__mise_toml__tests__set_alias-2.snap | 1 + ...fig_file__mise_toml__tests__set_alias.snap | 1 + src/config/config_file/tool_versions.rs | 8 ++-- src/config/env_directive.rs | 8 ++-- .../snapshots/mise__config__tests__load.snap | 1 + src/env_diff.rs | 8 ++-- src/plugins/mise_plugin_toml.rs | 4 +- ...ins__mise_plugin_toml__tests__fixture.snap | 1 + .../mise__shell__bash__tests__activate.snap | 1 + .../mise__shell__bash__tests__deactivate.snap | 1 + ...mise__shell__bash__tests__prepend_env.snap | 1 + .../mise__shell__bash__tests__set_env.snap | 1 + .../mise__shell__bash__tests__unset_env.snap | 1 + ...ise__shell__elvish__tests__deactivate.snap | 1 + ...mise__shell__elvish__tests__hook_init.snap | 1 + ...se__shell__elvish__tests__prepend_env.snap | 1 + .../mise__shell__elvish__tests__set_env.snap | 1 + ...mise__shell__elvish__tests__unset_env.snap | 1 + .../mise__shell__fish__tests__activate.snap | 1 + .../mise__shell__fish__tests__deactivate.snap | 1 + ...mise__shell__fish__tests__prepend_env.snap | 1 + .../mise__shell__fish__tests__set_env.snap | 1 + .../mise__shell__fish__tests__unset_env.snap | 1 + ...se__shell__nushell__tests__deactivate.snap | 1 + ...ise__shell__nushell__tests__hook_init.snap | 1 + ...e__shell__nushell__tests__prepend_env.snap | 1 + .../mise__shell__nushell__tests__set_env.snap | 1 + ...ise__shell__nushell__tests__unset_env.snap | 1 + .../mise__shell__xonsh__tests__hook_init.snap | 1 + ...ise__shell__xonsh__tests__prepend_env.snap | 1 + .../mise__shell__xonsh__tests__set_env.snap | 1 + .../mise__shell__xonsh__tests__unset_env.snap | 1 + ...shell__xonsh__tests__xonsh_deactivate.snap | 1 + .../mise__shell__zsh__tests__activate.snap | 1 + .../mise__shell__zsh__tests__deactivate.snap | 1 + .../mise__shell__zsh__tests__prepend_env.snap | 1 + .../mise__shell__zsh__tests__set_env.snap | 1 + .../mise__shell__zsh__tests__unset_env.snap | 1 + ...env__tests__add_path_to_old_and_new-2.snap | 1 + ...irenv__tests__add_path_to_old_and_new.snap | 1 + .../mise__direnv__tests__dump-2.snap | 1 + src/snapshots/mise__direnv__tests__dump.snap | 1 + .../mise__direnv__tests__null_path-2.snap | 1 + .../mise__direnv__tests__null_path.snap | 1 + src/snapshots/mise__direnv__tests__parse.snap | 1 + .../mise__env_diff__tests__diff.snap | 1 + ...se__env_diff__tests__from_bash_script.snap | 1 + .../mise__env_diff__tests__serialize.snap | 1 + .../mise__hash__tests__hash_sha256.snap | 1 + ...untime_symlinks__tests__list_symlinks.snap | 1 + 155 files changed, 215 insertions(+), 94 deletions(-) diff --git a/src/cli/alias/get.rs b/src/cli/alias/get.rs index fea5cdf8b..355937320 100644 --- a/src/cli/alias/get.rs +++ b/src/cli/alias/get.rs @@ -50,9 +50,7 @@ mod tests { fn test_alias_get() { reset(); let stdout = assert_cli!("alias", "get", "tiny", "my/alias"); - assert_snapshot!(stdout, @r###" - 3.0 - "###); + assert_snapshot!(stdout, @"3.0"); } #[test] diff --git a/src/cli/alias/ls.rs b/src/cli/alias/ls.rs index d3fef1239..3da099768 100644 --- a/src/cli/alias/ls.rs +++ b/src/cli/alias/ls.rs @@ -76,7 +76,7 @@ mod tests { #[test] fn test_alias_ls() { reset(); - assert_cli_snapshot!("aliases", @r#" + assert_cli_snapshot!("aliases", @r" java lts 21 node lts 22 node lts-argon 4 @@ -92,16 +92,16 @@ mod tests { tiny lts 3.1.0 tiny lts-prev 2.0.0 tiny my/alias 3.0 - "#); + "); } #[test] fn test_alias_ls_filter() { reset(); - assert_cli_snapshot!("aliases", "ls", "tiny", @r###" + assert_cli_snapshot!("aliases", "ls", "tiny", @r" tiny lts 3.1.0 tiny lts-prev 2.0.0 tiny my/alias 3.0 - "###); + "); } } diff --git a/src/cli/alias/set.rs b/src/cli/alias/set.rs index 6bea7ae05..59a9eb2aa 100644 --- a/src/cli/alias/set.rs +++ b/src/cli/alias/set.rs @@ -42,7 +42,7 @@ pub mod tests { reset(); assert_cli!("alias", "set", "tiny", "my/alias", "3.0"); - assert_cli_snapshot!("aliases", @r#" + assert_cli_snapshot!("aliases", @r" java lts 21 node lts 22 node lts-argon 4 @@ -58,7 +58,7 @@ pub mod tests { tiny lts 3.1.0 tiny lts-prev 2.0.0 tiny my/alias 3.0 - "#); + "); reset(); } } diff --git a/src/cli/alias/unset.rs b/src/cli/alias/unset.rs index cff3d1069..0e7b4eac4 100644 --- a/src/cli/alias/unset.rs +++ b/src/cli/alias/unset.rs @@ -40,7 +40,7 @@ mod tests { reset(); assert_cli!("alias", "unset", "tiny", "my/alias"); - assert_cli_snapshot!("aliases", @r#" + assert_cli_snapshot!("aliases", @r" java lts 21 node lts 22 node lts-argon 4 @@ -55,7 +55,7 @@ mod tests { node lts-jod 22 tiny lts 3.1.0 tiny lts-prev 2.0.0 - "#); + "); reset(); } diff --git a/src/cli/asdf.rs b/src/cli/asdf.rs index df541bbac..1f157ae5a 100644 --- a/src/cli/asdf.rs +++ b/src/cli/asdf.rs @@ -81,11 +81,11 @@ mod tests { assert_cli!("uninstall", "--all", "tiny"); assert_cli!("install", "tiny@1", "tiny@2"); assert_cli!("asdf", "install", "tiny"); - assert_cli_snapshot!("asdf", "list", "tiny", @r#" + assert_cli_snapshot!("asdf", "list", "tiny", @r" 1.0.1 2.1.0 3.1.0 - "#); + "); } #[test] @@ -93,9 +93,7 @@ mod tests { reset(); assert_cli!("uninstall", "--all", "tiny"); assert_cli!("install", "tiny@3.1.0"); - assert_cli_snapshot!("asdf", "current", "tiny", @r###" - 3.1.0 - "###); + assert_cli_snapshot!("asdf", "current", "tiny", @"3.1.0"); } #[test] diff --git a/src/cli/backends/snapshots/mise__cli__backends__ls__tests__backends_list.snap b/src/cli/backends/snapshots/mise__cli__backends__ls__tests__backends_list.snap index 5ef5c807b..83a11e44c 100644 --- a/src/cli/backends/snapshots/mise__cli__backends__ls__tests__backends_list.snap +++ b/src/cli/backends/snapshots/mise__cli__backends__ls__tests__backends_list.snap @@ -1,6 +1,7 @@ --- source: src/cli/backends/ls.rs expression: output +snapshot_kind: text --- cargo core diff --git a/src/cli/bin_paths.rs b/src/cli/bin_paths.rs index cf679cafa..223cee1e6 100644 --- a/src/cli/bin_paths.rs +++ b/src/cli/bin_paths.rs @@ -28,9 +28,9 @@ mod tests { fn test_bin_paths() { reset(); assert_cli!("i"); - assert_cli_snapshot!("bin-paths", @r#" + assert_cli_snapshot!("bin-paths", @r" ~/data/installs/tiny/3.1.0/bin ~/data/installs/dummy/ref-master/bin - "#); + "); } } diff --git a/src/cli/cache/clear.rs b/src/cli/cache/clear.rs index a8b091a6d..05fd953db 100644 --- a/src/cli/cache/clear.rs +++ b/src/cli/cache/clear.rs @@ -63,16 +63,12 @@ mod tests { #[test] fn test_cache_clear() { reset(); - assert_cli_snapshot!("cache", "clear", @r###" - mise cache cleared - "###); + assert_cli_snapshot!("cache", "clear", @"mise cache cleared"); } #[test] fn test_cache_clear_plugin() { reset(); - assert_cli_snapshot!("cache", "clear", "tiny", @r###" - mise cache cleared for tiny - "###); + assert_cli_snapshot!("cache", "clear", "tiny", @"mise cache cleared for tiny"); } } diff --git a/src/cli/config/ls.rs b/src/cli/config/ls.rs index 5555ecc1d..9eb831b2f 100644 --- a/src/cli/config/ls.rs +++ b/src/cli/config/ls.rs @@ -113,11 +113,11 @@ mod tests { #[test] fn test_config_ls() { reset(); - assert_cli_snapshot!("cfg", "--no-headers", @r###" + assert_cli_snapshot!("cfg", "--no-headers", @r" ~/cwd/.test-tool-versions tiny ~/.test-tool-versions tiny, dummy ~/config/config.toml (none) - "###); + "); } #[test] diff --git a/src/cli/config/set.rs b/src/cli/config/set.rs index 942a774cc..0e5eb60c4 100644 --- a/src/cli/config/set.rs +++ b/src/cli/config/set.rs @@ -147,6 +147,6 @@ mod tests { assert_cli_snapshot!("config", "get", "settings.jobs", @"4"); assert_cli_snapshot!("config", "set", "settings.disable_tools", "--type", "list", "node,rust", @""); - assert_cli_snapshot!("config", "get", "settings.disable_tools", @"[\"node\", \"rust\"]"); + assert_cli_snapshot!("config", "get", "settings.disable_tools", @r#"["node", "rust"]"#); } } diff --git a/src/cli/config/snapshots/mise__cli__config__generate__tests__generate.snap b/src/cli/config/snapshots/mise__cli__config__generate__tests__generate.snap index b9c139692..707dba63e 100644 --- a/src/cli/config/snapshots/mise__cli__config__generate__tests__generate.snap +++ b/src/cli/config/snapshots/mise__cli__config__generate__tests__generate.snap @@ -1,6 +1,7 @@ --- source: src/cli/config/generate.rs expression: output +snapshot_kind: text --- # # mise config files are hierarchical. mise will find all of the config files # # in all parent directories and merge them together. diff --git a/src/cli/config/snapshots/mise__cli__config__get__tests__toml_get.snap b/src/cli/config/snapshots/mise__cli__config__get__tests__toml_get.snap index b2fef2c60..f6e33dd80 100644 --- a/src/cli/config/snapshots/mise__cli__config__get__tests__toml_get.snap +++ b/src/cli/config/snapshots/mise__cli__config__get__tests__toml_get.snap @@ -1,6 +1,7 @@ --- source: src/cli/config/get.rs expression: output +snapshot_kind: text --- [alias.tiny] "my/alias" = "3.0" diff --git a/src/cli/config/snapshots/mise__cli__config__ls__tests__config_ls_json.snap b/src/cli/config/snapshots/mise__cli__config__ls__tests__config_ls_json.snap index 4473ff2a8..01e0f6b20 100644 --- a/src/cli/config/snapshots/mise__cli__config__ls__tests__config_ls_json.snap +++ b/src/cli/config/snapshots/mise__cli__config__ls__tests__config_ls_json.snap @@ -1,6 +1,7 @@ --- source: src/cli/config/ls.rs expression: output +snapshot_kind: text --- [ { diff --git a/src/cli/direnv/snapshots/mise__cli__direnv__envrc__tests__direnv_envrc.snap b/src/cli/direnv/snapshots/mise__cli__direnv__envrc__tests__direnv_envrc.snap index dc6ec483a..82c09df25 100644 --- a/src/cli/direnv/snapshots/mise__cli__direnv__envrc__tests__direnv_envrc.snap +++ b/src/cli/direnv/snapshots/mise__cli__direnv__envrc__tests__direnv_envrc.snap @@ -1,6 +1,7 @@ --- source: src/cli/direnv/envrc.rs expression: envrc +snapshot_kind: text --- ### Do not edit. This was autogenerated by 'asdf direnv envrc' ### watch_file ~/cwd/.test-tool-versions diff --git a/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit.snap b/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit.snap index f69d9a17a..92307e637 100644 --- a/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit.snap +++ b/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit.snap @@ -1,6 +1,7 @@ --- source: src/cli/generate/git_pre_commit.rs expression: output +snapshot_kind: text --- #!/bin/sh mise run testing123 diff --git a/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit_write-2.snap b/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit_write-2.snap index bc5eaff81..7455b10e7 100644 --- a/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit_write-2.snap +++ b/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit_write-2.snap @@ -1,6 +1,7 @@ --- source: src/cli/generate/git_pre_commit.rs expression: "file::read_to_string(&path).unwrap()" +snapshot_kind: text --- #!/bin/sh mise run pre-commit diff --git a/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit_write.snap b/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit_write.snap index 421431148..601aa6c0f 100644 --- a/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit_write.snap +++ b/src/cli/generate/snapshots/mise__cli__generate__git_pre_commit__tests__git_pre_commit_write.snap @@ -1,5 +1,6 @@ --- source: src/cli/generate/git_pre_commit.rs expression: output +snapshot_kind: text --- Wrote to ~/cwd/.git/hooks/testing123 diff --git a/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action.snap b/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action.snap index 7f8b2206e..4787c1804 100644 --- a/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action.snap +++ b/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action.snap @@ -1,6 +1,7 @@ --- source: src/cli/generate/github_action.rs expression: output +snapshot_kind: text --- name: ci diff --git a/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action_write-2.snap b/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action_write-2.snap index 26b4ce79a..fbc957a04 100644 --- a/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action_write-2.snap +++ b/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action_write-2.snap @@ -1,6 +1,7 @@ --- source: src/cli/generate/github_action.rs expression: contents +snapshot_kind: text --- name: testing123 diff --git a/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action_write.snap b/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action_write.snap index c97ba3293..807879ad3 100644 --- a/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action_write.snap +++ b/src/cli/generate/snapshots/mise__cli__generate__github_action__tests__github_action_write.snap @@ -1,5 +1,6 @@ --- source: src/cli/generate/github_action.rs expression: output +snapshot_kind: text --- Wrote to ~/cwd/.github/workflows/testing123.yml diff --git a/src/cli/link.rs b/src/cli/link.rs index 3d36e1574..06f6f3881 100644 --- a/src/cli/link.rs +++ b/src/cli/link.rs @@ -91,13 +91,13 @@ mod tests { assert_cli!("install", "tiny@3.0.1", "tiny@3.1.0"); create_dir_all("../data/tmp/tiny").unwrap(); assert_cli!("link", "tiny@9.8.7", "../data/tmp/tiny"); - assert_cli_snapshot!("ls", "tiny", @r###" + assert_cli_snapshot!("ls", "tiny", @r" tiny 1.0.1 tiny 2.1.0 tiny 3.0.1 tiny 3.1.0 ~/cwd/.test-tool-versions 3 tiny 9.8.7 (symlink) - "###); + "); assert_cli!("uninstall", "tiny@9.8.7"); } } diff --git a/src/cli/ls.rs b/src/cli/ls.rs index 287770540..665d32d32 100644 --- a/src/cli/ls.rs +++ b/src/cli/ls.rs @@ -415,45 +415,45 @@ mod tests { reset(); let _ = remove_all(*dirs::INSTALLS); assert_cli!("install"); - assert_cli_snapshot!("list", @r###" + assert_cli_snapshot!("list", @r" dummy ref:master ~/.test-tool-versions ref:master tiny 3.1.0 ~/cwd/.test-tool-versions 3 - "###); + "); assert_cli!("install", "tiny@2.0.0"); - assert_cli_snapshot!("list", @r###" + assert_cli_snapshot!("list", @r" dummy ref:master ~/.test-tool-versions ref:master tiny 2.0.0 tiny 3.1.0 ~/cwd/.test-tool-versions 3 - "###); + "); assert_cli!("uninstall", "tiny@3.1.0"); - assert_cli_snapshot!("list", @r###" + assert_cli_snapshot!("list", @r" dummy ref:master ~/.test-tool-versions ref:master tiny 2.0.0 tiny 3.1.0 (missing) ~/cwd/.test-tool-versions 3 - "###); + "); assert_cli!("uninstall", "tiny@2.0.0"); - assert_cli_snapshot!("list", @r###" + assert_cli_snapshot!("list", @r" dummy ref:master ~/.test-tool-versions ref:master tiny 3.1.0 (missing) ~/cwd/.test-tool-versions 3 - "###); + "); assert_cli!("install"); - assert_cli_snapshot!("list", @r###" + assert_cli_snapshot!("list", @r" dummy ref:master ~/.test-tool-versions ref:master tiny 3.1.0 ~/cwd/.test-tool-versions 3 - "###); + "); } #[test] fn test_ls_current() { reset(); - assert_cli_snapshot!("ls", "-c", @r###" + assert_cli_snapshot!("ls", "-c", @r" dummy ref:master ~/.test-tool-versions ref:master tiny 3.1.0 ~/cwd/.test-tool-versions 3 - "###); + "); } #[test] @@ -470,17 +470,17 @@ mod tests { reset(); let _ = remove_all(*dirs::INSTALLS); assert_cli!("install"); - assert_cli_snapshot!("ls", "--parseable", @r###" + assert_cli_snapshot!("ls", "--parseable", @r" dummy ref:master tiny 3.1.0 mise The parseable output format is deprecated and will be removed in a future release. mise Please use the regular output format instead which has been modified to be more easily parseable. - "###); - assert_cli_snapshot!("ls", "--parseable", "tiny", @r###" + "); + assert_cli_snapshot!("ls", "--parseable", "tiny", @r" 3.1.0 mise The parseable output format is deprecated and will be removed in a future release. mise Please use the regular output format instead which has been modified to be more easily parseable. - "###); + "); } #[test] diff --git a/src/cli/plugins/snapshots/mise__cli__plugins__ls__tests__plugin_list.snap b/src/cli/plugins/snapshots/mise__cli__plugins__ls__tests__plugin_list.snap index 751d679e5..fdd0177b7 100644 --- a/src/cli/plugins/snapshots/mise__cli__plugins__ls__tests__plugin_list.snap +++ b/src/cli/plugins/snapshots/mise__cli__plugins__ls__tests__plugin_list.snap @@ -1,6 +1,7 @@ --- source: src/cli/plugins/ls.rs expression: output +snapshot_kind: text --- dummy tiny diff --git a/src/cli/plugins/snapshots/mise__cli__plugins__ls__tests__plugin_list_all.snap b/src/cli/plugins/snapshots/mise__cli__plugins__ls__tests__plugin_list_all.snap index 077116270..4558d4dc7 100644 --- a/src/cli/plugins/snapshots/mise__cli__plugins__ls__tests__plugin_list_all.snap +++ b/src/cli/plugins/snapshots/mise__cli__plugins__ls__tests__plugin_list_all.snap @@ -1,5 +1,6 @@ --- source: src/cli/plugins/ls.rs expression: "grep(stdout, \"zephyr\")" +snapshot_kind: text --- zephyr https://github.com/nsaunders/asdf-zephyr.git diff --git a/src/cli/run.rs b/src/cli/run.rs index 1c0e3c7dc..d3cfe0391 100644 --- a/src/cli/run.rs +++ b/src/cli/run.rs @@ -787,9 +787,7 @@ mod tests { "arg4" , @""); let body = file::read_to_string("test-build-output.txt").unwrap(); - assert_snapshot!(body, @r###" - TEST_BUILDSCRIPT_ENV_VAR: VALID - "###); + assert_snapshot!(body, @"TEST_BUILDSCRIPT_ENV_VAR: VALID"); } #[test] @@ -801,9 +799,7 @@ mod tests { "shell", @""); let body = file::read_to_string("test-build-output.txt").unwrap(); - assert_snapshot!(body, @r###" - using shell bash - "###); + assert_snapshot!(body, @"using shell bash"); } #[test] diff --git a/src/cli/settings/get.rs b/src/cli/settings/get.rs index 135e3b8c2..f95b08ef7 100644 --- a/src/cli/settings/get.rs +++ b/src/cli/settings/get.rs @@ -54,7 +54,7 @@ mod tests { fn test_settings_get() { reset(); assert_cli_snapshot!("settings", "get", "legacy_version_file", @"true"); - assert_cli_snapshot!("settings", "get", "status.missing_tools", @r###""if_other_versions_installed""###); + assert_cli_snapshot!("settings", "get", "status.missing_tools", @r#""if_other_versions_installed""#); } #[test] diff --git a/src/cli/snapshots/mise__cli__asdf__tests__fake_asdf_install.snap b/src/cli/snapshots/mise__cli__asdf__tests__fake_asdf_install.snap index 0d5fbf77d..91f0aa937 100644 --- a/src/cli/snapshots/mise__cli__asdf__tests__fake_asdf_install.snap +++ b/src/cli/snapshots/mise__cli__asdf__tests__fake_asdf_install.snap @@ -1,5 +1,6 @@ --- source: src/cli/asdf.rs expression: "assert_cli!(\"asdf\", \"install\", \"tiny\")" +snapshot_kind: text --- diff --git a/src/cli/snapshots/mise__cli__asdf__tests__fake_asdf_reshim.snap b/src/cli/snapshots/mise__cli__asdf__tests__fake_asdf_reshim.snap index 7e33daa9d..9e1d3d654 100644 --- a/src/cli/snapshots/mise__cli__asdf__tests__fake_asdf_reshim.snap +++ b/src/cli/snapshots/mise__cli__asdf__tests__fake_asdf_reshim.snap @@ -1,5 +1,6 @@ --- source: src/cli/asdf.rs expression: output +snapshot_kind: text --- diff --git a/src/cli/snapshots/mise__cli__deactivate__tests__deactivate-2.snap b/src/cli/snapshots/mise__cli__deactivate__tests__deactivate-2.snap index ac9a1130d..56c8c8dfb 100644 --- a/src/cli/snapshots/mise__cli__deactivate__tests__deactivate-2.snap +++ b/src/cli/snapshots/mise__cli__deactivate__tests__deactivate-2.snap @@ -1,6 +1,7 @@ --- source: src/cli/deactivate.rs expression: output +snapshot_kind: text --- export PATH='$PATH' precmd_functions=( ${precmd_functions:#_mise_hook} ) diff --git a/src/cli/snapshots/mise__cli__deactivate__tests__deactivate.snap b/src/cli/snapshots/mise__cli__deactivate__tests__deactivate.snap index 2613f7230..d79f10a96 100644 --- a/src/cli/snapshots/mise__cli__deactivate__tests__deactivate.snap +++ b/src/cli/snapshots/mise__cli__deactivate__tests__deactivate.snap @@ -1,6 +1,7 @@ --- source: src/cli/deactivate.rs expression: err +snapshot_kind: text --- mise is not activated in this shell session. Please run `mise activate` first in your shell rc file. diff --git a/src/cli/snapshots/mise__cli__env__tests__env_json.snap b/src/cli/snapshots/mise__cli__env__tests__env_json.snap index f3114eada..994d27ff1 100644 --- a/src/cli/snapshots/mise__cli__env__tests__env_json.snap +++ b/src/cli/snapshots/mise__cli__env__tests__env_json.snap @@ -1,6 +1,7 @@ --- source: src/cli/env.rs expression: output +snapshot_kind: text --- { "JDXCODE_TINY": "3.1.0", diff --git a/src/cli/snapshots/mise__cli__exec__tests__exec_fail.snap b/src/cli/snapshots/mise__cli__exec__tests__exec_fail.snap index e343554fb..1c22dfa3c 100644 --- a/src/cli/snapshots/mise__cli__exec__tests__exec_fail.snap +++ b/src/cli/snapshots/mise__cli__exec__tests__exec_fail.snap @@ -1,5 +1,6 @@ --- source: src/cli/exec.rs expression: err +snapshot_kind: text --- No such file or directory (os error 2) diff --git a/src/cli/snapshots/mise__cli__global__tests__global-2.snap b/src/cli/snapshots/mise__cli__global__tests__global-2.snap index 01bbdf0df..3a5a03750 100644 --- a/src/cli/snapshots/mise__cli__global__tests__global-2.snap +++ b/src/cli/snapshots/mise__cli__global__tests__global-2.snap @@ -1,5 +1,6 @@ --- source: src/cli/global.rs expression: output +snapshot_kind: text --- mise ~/config/config.toml tiny@2 diff --git a/src/cli/snapshots/mise__cli__global__tests__global-3.snap b/src/cli/snapshots/mise__cli__global__tests__global-3.snap index f24078068..fda499c17 100644 --- a/src/cli/snapshots/mise__cli__global__tests__global-3.snap +++ b/src/cli/snapshots/mise__cli__global__tests__global-3.snap @@ -1,5 +1,6 @@ --- source: src/cli/global.rs expression: output +snapshot_kind: text --- mise ~/config/config.toml tiny diff --git a/src/cli/snapshots/mise__cli__global__tests__global-4.snap b/src/cli/snapshots/mise__cli__global__tests__global-4.snap index 01bbdf0df..3a5a03750 100644 --- a/src/cli/snapshots/mise__cli__global__tests__global-4.snap +++ b/src/cli/snapshots/mise__cli__global__tests__global-4.snap @@ -1,5 +1,6 @@ --- source: src/cli/global.rs expression: output +snapshot_kind: text --- mise ~/config/config.toml tiny@2 diff --git a/src/cli/snapshots/mise__cli__global__tests__global-5.snap b/src/cli/snapshots/mise__cli__global__tests__global-5.snap index 878f100f1..b4087c0ad 100644 --- a/src/cli/snapshots/mise__cli__global__tests__global-5.snap +++ b/src/cli/snapshots/mise__cli__global__tests__global-5.snap @@ -1,5 +1,6 @@ --- source: src/cli/global.rs expression: output +snapshot_kind: text --- 2.1.0 diff --git a/src/cli/snapshots/mise__cli__global__tests__global-6.snap b/src/cli/snapshots/mise__cli__global__tests__global-6.snap index 69d01e86e..fb0860451 100644 --- a/src/cli/snapshots/mise__cli__global__tests__global-6.snap +++ b/src/cli/snapshots/mise__cli__global__tests__global-6.snap @@ -1,5 +1,6 @@ --- source: src/cli/global.rs expression: output +snapshot_kind: text --- ~/config/config.toml diff --git a/src/cli/snapshots/mise__cli__global__tests__global.snap b/src/cli/snapshots/mise__cli__global__tests__global.snap index 01bbdf0df..3a5a03750 100644 --- a/src/cli/snapshots/mise__cli__global__tests__global.snap +++ b/src/cli/snapshots/mise__cli__global__tests__global.snap @@ -1,5 +1,6 @@ --- source: src/cli/global.rs expression: output +snapshot_kind: text --- mise ~/config/config.toml tiny@2 diff --git a/src/cli/snapshots/mise__cli__install__tests__install_nothing.snap b/src/cli/snapshots/mise__cli__install__tests__install_nothing.snap index 3da804a28..84ab3455d 100644 --- a/src/cli/snapshots/mise__cli__install__tests__install_nothing.snap +++ b/src/cli/snapshots/mise__cli__install__tests__install_nothing.snap @@ -1,5 +1,6 @@ --- source: src/cli/install.rs expression: output +snapshot_kind: text --- diff --git a/src/cli/snapshots/mise__cli__install__tests__install_with_alias.snap b/src/cli/snapshots/mise__cli__install__tests__install_with_alias.snap index 3e1412c8f..35fc24307 100644 --- a/src/cli/snapshots/mise__cli__install__tests__install_with_alias.snap +++ b/src/cli/snapshots/mise__cli__install__tests__install_with_alias.snap @@ -1,5 +1,6 @@ --- source: src/cli/install.rs expression: output +snapshot_kind: text --- ~/data/installs/tiny/3.0.1 diff --git a/src/cli/snapshots/mise__cli__latest__tests__latest.snap b/src/cli/snapshots/mise__cli__latest__tests__latest.snap index 02f19f164..47768174c 100644 --- a/src/cli/snapshots/mise__cli__latest__tests__latest.snap +++ b/src/cli/snapshots/mise__cli__latest__tests__latest.snap @@ -1,5 +1,6 @@ --- source: src/cli/latest.rs expression: output +snapshot_kind: text --- 1.1.0 diff --git a/src/cli/snapshots/mise__cli__latest__tests__latest_asdf_format.snap b/src/cli/snapshots/mise__cli__latest__tests__latest_asdf_format.snap index 02f19f164..47768174c 100644 --- a/src/cli/snapshots/mise__cli__latest__tests__latest_asdf_format.snap +++ b/src/cli/snapshots/mise__cli__latest__tests__latest_asdf_format.snap @@ -1,5 +1,6 @@ --- source: src/cli/latest.rs expression: output +snapshot_kind: text --- 1.1.0 diff --git a/src/cli/snapshots/mise__cli__latest__tests__latest_installed.snap b/src/cli/snapshots/mise__cli__latest__tests__latest_installed.snap index e97632de7..e692e8d85 100644 --- a/src/cli/snapshots/mise__cli__latest__tests__latest_installed.snap +++ b/src/cli/snapshots/mise__cli__latest__tests__latest_installed.snap @@ -1,5 +1,6 @@ --- source: src/cli/latest.rs expression: output +snapshot_kind: text --- 2.0.0 diff --git a/src/cli/snapshots/mise__cli__latest__tests__latest_missing_plugin.snap b/src/cli/snapshots/mise__cli__latest__tests__latest_missing_plugin.snap index e7aaee4d5..bb6ee06c8 100644 --- a/src/cli/snapshots/mise__cli__latest__tests__latest_missing_plugin.snap +++ b/src/cli/snapshots/mise__cli__latest__tests__latest_missing_plugin.snap @@ -1,5 +1,6 @@ --- source: src/cli/latest.rs expression: stdout +snapshot_kind: text --- No repository found for plugin invalid_plugin diff --git a/src/cli/snapshots/mise__cli__latest__tests__latest_system.snap b/src/cli/snapshots/mise__cli__latest__tests__latest_system.snap index 8edb27ad0..55d32502d 100644 --- a/src/cli/snapshots/mise__cli__latest__tests__latest_system.snap +++ b/src/cli/snapshots/mise__cli__latest__tests__latest_system.snap @@ -1,5 +1,6 @@ --- source: src/cli/latest.rs expression: err +snapshot_kind: text --- invalid version: dummy@system diff --git a/src/cli/snapshots/mise__cli__local__tests__local_alias_prefix.snap b/src/cli/snapshots/mise__cli__local__tests__local_alias_prefix.snap index 4bb053e50..7aa25e123 100644 --- a/src/cli/snapshots/mise__cli__local__tests__local_alias_prefix.snap +++ b/src/cli/snapshots/mise__cli__local__tests__local_alias_prefix.snap @@ -1,5 +1,6 @@ --- source: src/cli/local.rs expression: output +snapshot_kind: text --- 1.1.0 diff --git a/src/cli/snapshots/mise__cli__local__tests__local_alias_ref.snap b/src/cli/snapshots/mise__cli__local__tests__local_alias_ref.snap index 3a0504c83..73a4cae57 100644 --- a/src/cli/snapshots/mise__cli__local__tests__local_alias_ref.snap +++ b/src/cli/snapshots/mise__cli__local__tests__local_alias_ref.snap @@ -1,5 +1,6 @@ --- source: src/cli/local.rs expression: output +snapshot_kind: text --- ref:master diff --git a/src/cli/snapshots/mise__cli__local__tests__local_alias_system.snap b/src/cli/snapshots/mise__cli__local__tests__local_alias_system.snap index 3c068e77a..39391c495 100644 --- a/src/cli/snapshots/mise__cli__local__tests__local_alias_system.snap +++ b/src/cli/snapshots/mise__cli__local__tests__local_alias_system.snap @@ -1,5 +1,6 @@ --- source: src/cli/local.rs expression: output +snapshot_kind: text --- system diff --git a/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions-2.snap b/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions-2.snap index 0fb6fd706..eec4e45e1 100644 --- a/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions-2.snap +++ b/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions-2.snap @@ -1,5 +1,6 @@ --- source: src/cli/local.rs expression: output +snapshot_kind: text --- mise ~/cwd/.test-tool-versions tiny@2 tiny@1 tiny@3 diff --git a/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions-3.snap b/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions-3.snap index 64e20d63e..91fdbbf07 100644 --- a/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions-3.snap +++ b/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions-3.snap @@ -1,6 +1,7 @@ --- source: src/cli/local.rs expression: output +snapshot_kind: text --- ~/data/installs/tiny/2.1.0/bin ~/data/installs/tiny/1.0.1/bin diff --git a/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions.snap b/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions.snap index 361a4602b..a8bde7fca 100644 --- a/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions.snap +++ b/src/cli/snapshots/mise__cli__local__tests__local_multiple_versions.snap @@ -1,5 +1,6 @@ --- source: src/cli/local.rs expression: output +snapshot_kind: text --- ~/cwd/.test-tool-versions diff --git a/src/cli/snapshots/mise__cli__local__tests__local_remove-2.snap b/src/cli/snapshots/mise__cli__local__tests__local_remove-2.snap index 655d69103..d7ff870cf 100644 --- a/src/cli/snapshots/mise__cli__local__tests__local_remove-2.snap +++ b/src/cli/snapshots/mise__cli__local__tests__local_remove-2.snap @@ -1,5 +1,6 @@ --- source: src/cli/local.rs expression: output +snapshot_kind: text --- mise ~/cwd/.test-tool-versions tiny@2 diff --git a/src/cli/snapshots/mise__cli__local__tests__local_remove-3.snap b/src/cli/snapshots/mise__cli__local__tests__local_remove-3.snap index b0268fbd8..71749b3ad 100644 --- a/src/cli/snapshots/mise__cli__local__tests__local_remove-3.snap +++ b/src/cli/snapshots/mise__cli__local__tests__local_remove-3.snap @@ -1,5 +1,6 @@ --- source: src/cli/local.rs expression: output +snapshot_kind: text --- mise ~/cwd/.test-tool-versions tiny diff --git a/src/cli/snapshots/mise__cli__local__tests__local_remove.snap b/src/cli/snapshots/mise__cli__local__tests__local_remove.snap index 655d69103..d7ff870cf 100644 --- a/src/cli/snapshots/mise__cli__local__tests__local_remove.snap +++ b/src/cli/snapshots/mise__cli__local__tests__local_remove.snap @@ -1,5 +1,6 @@ --- source: src/cli/local.rs expression: output +snapshot_kind: text --- mise ~/cwd/.test-tool-versions tiny@2 diff --git a/src/cli/snapshots/mise__cli__ls__tests__ls_json-2.snap b/src/cli/snapshots/mise__cli__ls__tests__ls_json-2.snap index 60060afee..e2d280868 100644 --- a/src/cli/snapshots/mise__cli__ls__tests__ls_json-2.snap +++ b/src/cli/snapshots/mise__cli__ls__tests__ls_json-2.snap @@ -1,6 +1,7 @@ --- source: src/cli/ls.rs expression: output +snapshot_kind: text --- [ { diff --git a/src/cli/snapshots/mise__cli__ls__tests__ls_json.snap b/src/cli/snapshots/mise__cli__ls__tests__ls_json.snap index c811dfd3c..0cdeef414 100644 --- a/src/cli/snapshots/mise__cli__ls__tests__ls_json.snap +++ b/src/cli/snapshots/mise__cli__ls__tests__ls_json.snap @@ -1,6 +1,7 @@ --- source: src/cli/ls.rs expression: output +snapshot_kind: text --- { "dummy": [ diff --git a/src/cli/snapshots/mise__cli__outdated__tests__outdated.snap b/src/cli/snapshots/mise__cli__outdated__tests__outdated.snap index bffc18a01..afb0baa12 100644 --- a/src/cli/snapshots/mise__cli__outdated__tests__outdated.snap +++ b/src/cli/snapshots/mise__cli__outdated__tests__outdated.snap @@ -1,5 +1,6 @@ --- source: src/cli/outdated.rs expression: output +snapshot_kind: text --- mise All tools are up to date diff --git a/src/cli/snapshots/mise__cli__outdated__tests__outdated_with_runtimes.snap b/src/cli/snapshots/mise__cli__outdated__tests__outdated_with_runtimes.snap index bffc18a01..afb0baa12 100644 --- a/src/cli/snapshots/mise__cli__outdated__tests__outdated_with_runtimes.snap +++ b/src/cli/snapshots/mise__cli__outdated__tests__outdated_with_runtimes.snap @@ -1,5 +1,6 @@ --- source: src/cli/outdated.rs expression: output +snapshot_kind: text --- mise All tools are up to date diff --git a/src/cli/snapshots/mise__cli__r#where__tests__where_asdf_style-2.snap b/src/cli/snapshots/mise__cli__r#where__tests__where_asdf_style-2.snap index 79cad1e90..0851fa8ef 100644 --- a/src/cli/snapshots/mise__cli__r#where__tests__where_asdf_style-2.snap +++ b/src/cli/snapshots/mise__cli__r#where__tests__where_asdf_style-2.snap @@ -1,5 +1,6 @@ --- source: src/cli/where.rs expression: output +snapshot_kind: text --- ~/data/installs/tiny/3.1.0 diff --git a/src/cli/snapshots/mise__cli__r#where__tests__where_asdf_style.snap b/src/cli/snapshots/mise__cli__r#where__tests__where_asdf_style.snap index 4ff9ac632..e7a79f84c 100644 --- a/src/cli/snapshots/mise__cli__r#where__tests__where_asdf_style.snap +++ b/src/cli/snapshots/mise__cli__r#where__tests__where_asdf_style.snap @@ -1,5 +1,6 @@ --- source: src/cli/where.rs expression: output +snapshot_kind: text --- ~/data/installs/tiny/2.1.0 diff --git a/src/cli/snapshots/mise__cli__set__tests__env_vars-3.snap b/src/cli/snapshots/mise__cli__set__tests__env_vars-3.snap index 7f6f9e6d3..af665cec5 100644 --- a/src/cli/snapshots/mise__cli__set__tests__env_vars-3.snap +++ b/src/cli/snapshots/mise__cli__set__tests__env_vars-3.snap @@ -1,6 +1,7 @@ --- source: src/cli/set.rs expression: "file::read_to_string(cf_path).unwrap()" +snapshot_kind: text --- [env] FOO = "bar" diff --git a/src/cli/snapshots/mise__cli__set__tests__env_vars-5.snap b/src/cli/snapshots/mise__cli__set__tests__env_vars-5.snap index 7f6f9e6d3..af665cec5 100644 --- a/src/cli/snapshots/mise__cli__set__tests__env_vars-5.snap +++ b/src/cli/snapshots/mise__cli__set__tests__env_vars-5.snap @@ -1,6 +1,7 @@ --- source: src/cli/set.rs expression: "file::read_to_string(cf_path).unwrap()" +snapshot_kind: text --- [env] FOO = "bar" diff --git a/src/cli/snapshots/mise__cli__set__tests__env_vars_remove-3.snap b/src/cli/snapshots/mise__cli__set__tests__env_vars_remove-3.snap index f8a01278a..d5ad333f4 100644 --- a/src/cli/snapshots/mise__cli__set__tests__env_vars_remove-3.snap +++ b/src/cli/snapshots/mise__cli__set__tests__env_vars_remove-3.snap @@ -1,5 +1,6 @@ --- source: src/cli/set.rs expression: "file::read_to_string(cf_path).unwrap()" +snapshot_kind: text --- [env] diff --git a/src/cli/snapshots/mise__cli__set__tests__env_vars_remove-6.snap b/src/cli/snapshots/mise__cli__set__tests__env_vars_remove-6.snap index f8a01278a..d5ad333f4 100644 --- a/src/cli/snapshots/mise__cli__set__tests__env_vars_remove-6.snap +++ b/src/cli/snapshots/mise__cli__set__tests__env_vars_remove-6.snap @@ -1,5 +1,6 @@ --- source: src/cli/set.rs expression: "file::read_to_string(cf_path).unwrap()" +snapshot_kind: text --- [env] diff --git a/src/cli/snapshots/mise__cli__set__tests__show_env_vars.snap b/src/cli/snapshots/mise__cli__set__tests__show_env_vars.snap index 6939175fd..981989b57 100644 --- a/src/cli/snapshots/mise__cli__set__tests__show_env_vars.snap +++ b/src/cli/snapshots/mise__cli__set__tests__show_env_vars.snap @@ -1,5 +1,6 @@ --- source: src/cli/set.rs expression: output +snapshot_kind: text --- TEST_ENV_VAR test-123 ~/config/config.toml diff --git a/src/cli/snapshots/mise__cli__shell__tests__shell.snap b/src/cli/snapshots/mise__cli__shell__tests__shell.snap index 36b167eea..bbcc5ff8f 100644 --- a/src/cli/snapshots/mise__cli__shell__tests__shell.snap +++ b/src/cli/snapshots/mise__cli__shell__tests__shell.snap @@ -1,6 +1,7 @@ --- source: src/cli/shell.rs expression: err +snapshot_kind: text --- mise is not activated in this shell session. Please run `mise activate` first in your shell rc file. diff --git a/src/cli/snapshots/mise__cli__trust__tests__trust-2.snap b/src/cli/snapshots/mise__cli__trust__tests__trust-2.snap index 46078b876..015de888c 100644 --- a/src/cli/snapshots/mise__cli__trust__tests__trust-2.snap +++ b/src/cli/snapshots/mise__cli__trust__tests__trust-2.snap @@ -1,5 +1,6 @@ --- source: src/cli/trust.rs expression: output +snapshot_kind: text --- mise No untrusted config files found. diff --git a/src/cli/snapshots/mise__cli__trust__tests__trust-3.snap b/src/cli/snapshots/mise__cli__trust__tests__trust-3.snap index e650db175..8f1816ffe 100644 --- a/src/cli/snapshots/mise__cli__trust__tests__trust-3.snap +++ b/src/cli/snapshots/mise__cli__trust__tests__trust-3.snap @@ -1,5 +1,6 @@ --- source: src/cli/trust.rs expression: output +snapshot_kind: text --- mise untrusted ~/cwd/.test-tool-versions diff --git a/src/cli/snapshots/mise__cli__trust__tests__trust-4.snap b/src/cli/snapshots/mise__cli__trust__tests__trust-4.snap index e47fa4340..7c898b098 100644 --- a/src/cli/snapshots/mise__cli__trust__tests__trust-4.snap +++ b/src/cli/snapshots/mise__cli__trust__tests__trust-4.snap @@ -1,5 +1,6 @@ --- source: src/cli/trust.rs expression: output +snapshot_kind: text --- mise trusted ~/cwd/.test-tool-versions diff --git a/src/cli/snapshots/mise__cli__trust__tests__trust-5.snap b/src/cli/snapshots/mise__cli__trust__tests__trust-5.snap index e650db175..8f1816ffe 100644 --- a/src/cli/snapshots/mise__cli__trust__tests__trust-5.snap +++ b/src/cli/snapshots/mise__cli__trust__tests__trust-5.snap @@ -1,5 +1,6 @@ --- source: src/cli/trust.rs expression: output +snapshot_kind: text --- mise untrusted ~/cwd/.test-tool-versions diff --git a/src/cli/snapshots/mise__cli__trust__tests__trust.snap b/src/cli/snapshots/mise__cli__trust__tests__trust.snap index c68b92229..6b50d4a31 100644 --- a/src/cli/snapshots/mise__cli__trust__tests__trust.snap +++ b/src/cli/snapshots/mise__cli__trust__tests__trust.snap @@ -1,6 +1,7 @@ --- source: src/cli/trust.rs expression: output +snapshot_kind: text --- ~/config/config.toml: trusted ~/.test-tool-versions: trusted diff --git a/src/cli/snapshots/mise__cli__unset__tests__unset_remove-4.snap b/src/cli/snapshots/mise__cli__unset__tests__unset_remove-4.snap index bf7fd0080..d821459d3 100644 --- a/src/cli/snapshots/mise__cli__unset__tests__unset_remove-4.snap +++ b/src/cli/snapshots/mise__cli__unset__tests__unset_remove-4.snap @@ -1,5 +1,6 @@ --- source: src/cli/unset.rs expression: "file::read_to_string(cf_path).unwrap()" +snapshot_kind: text --- [env] diff --git a/src/cli/snapshots/mise__cli__upgrade__tests__upgrade.snap b/src/cli/snapshots/mise__cli__upgrade__tests__upgrade.snap index 9a1091d46..e3d26556b 100644 --- a/src/cli/snapshots/mise__cli__upgrade__tests__upgrade.snap +++ b/src/cli/snapshots/mise__cli__upgrade__tests__upgrade.snap @@ -1,6 +1,7 @@ --- source: src/cli/upgrade.rs expression: output +snapshot_kind: text --- mise Would uninstall tiny@3.0.0 mise Would install tiny@3.1.0 diff --git a/src/cli/snapshots/mise__cli__upgrade__tests__upgrade_bump.snap b/src/cli/snapshots/mise__cli__upgrade__tests__upgrade_bump.snap index 2ef22c6fd..d685a71a4 100644 --- a/src/cli/snapshots/mise__cli__upgrade__tests__upgrade_bump.snap +++ b/src/cli/snapshots/mise__cli__upgrade__tests__upgrade_bump.snap @@ -1,6 +1,7 @@ --- source: src/cli/upgrade.rs expression: output +snapshot_kind: text --- mise Would uninstall tiny@3.0.0 mise Would uninstall dummy@ref:master diff --git a/src/cli/snapshots/mise__cli__which__tests__which.snap b/src/cli/snapshots/mise__cli__which__tests__which.snap index 8bcebb8d2..9afaba9ae 100644 --- a/src/cli/snapshots/mise__cli__which__tests__which.snap +++ b/src/cli/snapshots/mise__cli__which__tests__which.snap @@ -1,5 +1,6 @@ --- source: src/cli/which.rs expression: output +snapshot_kind: text --- ~/data/installs/dummy/1.0.0/bin/dummy diff --git a/src/cli/snapshots/mise__cli__which__tests__which_plugin.snap b/src/cli/snapshots/mise__cli__which__tests__which_plugin.snap index cfde89d60..685b4d272 100644 --- a/src/cli/snapshots/mise__cli__which__tests__which_plugin.snap +++ b/src/cli/snapshots/mise__cli__which__tests__which_plugin.snap @@ -1,5 +1,6 @@ --- source: src/cli/which.rs expression: output +snapshot_kind: text --- dummy diff --git a/src/cli/snapshots/mise__cli__which__tests__which_tool.snap b/src/cli/snapshots/mise__cli__which__tests__which_tool.snap index b21e95fdd..72f5a421d 100644 --- a/src/cli/snapshots/mise__cli__which__tests__which_tool.snap +++ b/src/cli/snapshots/mise__cli__which__tests__which_tool.snap @@ -1,5 +1,6 @@ --- source: src/cli/which.rs expression: output +snapshot_kind: text --- ~/data/installs/dummy/1.0.1/bin/dummy diff --git a/src/cli/snapshots/mise__cli__which__tests__which_version.snap b/src/cli/snapshots/mise__cli__which__tests__which_version.snap index 0a896d11f..d2c859873 100644 --- a/src/cli/snapshots/mise__cli__which__tests__which_version.snap +++ b/src/cli/snapshots/mise__cli__which__tests__which_version.snap @@ -1,5 +1,6 @@ --- source: src/cli/which.rs expression: output +snapshot_kind: text --- 1.0.0 diff --git a/src/cli/tasks/deps.rs b/src/cli/tasks/deps.rs index d719720f4..63704510a 100644 --- a/src/cli/tasks/deps.rs +++ b/src/cli/tasks/deps.rs @@ -162,7 +162,7 @@ mod tests { #[test] fn test_tasks_deps_tree() { reset(); - assert_cli_snapshot!("tasks", "deps", @r#" + assert_cli_snapshot!("tasks", "deps", @r" configtask filetask ├── test @@ -171,20 +171,20 @@ mod tests { shell shell invalid test - "# + " ); } #[test] fn test_tasks_deps_tree_args() { reset(); - assert_cli_snapshot!("tasks", "deps", "filetask", "lint", "test", @r###" + assert_cli_snapshot!("tasks", "deps", "filetask", "lint", "test", @r" filetask ├── test └── lint lint test - "### + " ); } diff --git a/src/cli/tasks/ls.rs b/src/cli/tasks/ls.rs index daf935e03..c94167742 100644 --- a/src/cli/tasks/ls.rs +++ b/src/cli/tasks/ls.rs @@ -191,14 +191,14 @@ mod tests { #[test] fn test_task_ls() { reset(); - assert_cli_snapshot!("t", "--no-headers", @r#" + assert_cli_snapshot!("t", "--no-headers", @r" configtask ~/config/config.toml filetask This is a test build script ~/cwd/.mise/tasks/filetask lint ~/config/config.toml shell ~/config/config.toml shell invalid ~/config/config.toml test ~/config/config.toml - "#); + "); } #[test] diff --git a/src/cli/tasks/snapshots/mise__cli__tasks__info__tests__task_info_json-2.snap b/src/cli/tasks/snapshots/mise__cli__tasks__info__tests__task_info_json-2.snap index 3b5ecec74..6fea247cc 100644 --- a/src/cli/tasks/snapshots/mise__cli__tasks__info__tests__task_info_json-2.snap +++ b/src/cli/tasks/snapshots/mise__cli__tasks__info__tests__task_info_json-2.snap @@ -1,6 +1,7 @@ --- source: src/cli/tasks/info.rs expression: output +snapshot_kind: text --- { "aliases": "", diff --git a/src/cli/tasks/snapshots/mise__cli__tasks__info__tests__task_info_json.snap b/src/cli/tasks/snapshots/mise__cli__tasks__info__tests__task_info_json.snap index 2a66d132a..feb57f99a 100644 --- a/src/cli/tasks/snapshots/mise__cli__tasks__info__tests__task_info_json.snap +++ b/src/cli/tasks/snapshots/mise__cli__tasks__info__tests__task_info_json.snap @@ -1,6 +1,7 @@ --- source: src/cli/tasks/info.rs expression: output +snapshot_kind: text --- { "aliases": "ft", diff --git a/src/cli/tasks/snapshots/mise__cli__tasks__ls__tests__task_ls_json.snap b/src/cli/tasks/snapshots/mise__cli__tasks__ls__tests__task_ls_json.snap index b6cf8ceb4..5e2ff1728 100644 --- a/src/cli/tasks/snapshots/mise__cli__tasks__ls__tests__task_ls_json.snap +++ b/src/cli/tasks/snapshots/mise__cli__tasks__ls__tests__task_ls_json.snap @@ -1,6 +1,7 @@ --- source: src/cli/tasks/ls.rs expression: output +snapshot_kind: text --- [ { diff --git a/src/cli/tasks/snapshots/mise__cli__tasks__ls__tests__task_ls_json_extended.snap b/src/cli/tasks/snapshots/mise__cli__tasks__ls__tests__task_ls_json_extended.snap index bda6d9553..2fee0e448 100644 --- a/src/cli/tasks/snapshots/mise__cli__tasks__ls__tests__task_ls_json_extended.snap +++ b/src/cli/tasks/snapshots/mise__cli__tasks__ls__tests__task_ls_json_extended.snap @@ -1,6 +1,7 @@ --- source: src/cli/tasks/ls.rs expression: output +snapshot_kind: text --- [ { diff --git a/src/config/config_file/mise_toml.rs b/src/config/config_file/mise_toml.rs index beeed76e1..3e643fef6 100644 --- a/src/config/config_file/mise_toml.rs +++ b/src/config/config_file/mise_toml.rs @@ -996,7 +996,7 @@ mod tests { let dump = cf.dump().unwrap(); let env = parse_env(file::read_to_string(&p).unwrap()); - assert_debug_snapshot!(env, @r###""foo=bar\nfoo2=qux\\nquux\nfoo3=qux\nquux""###); + assert_debug_snapshot!(env, @r#""foo=bar\nfoo2=qux\\nquux\nfoo3=qux\nquux""#); let cf: Box = Box::new(cf); with_settings!({ assert_snapshot!(dump); @@ -1020,13 +1020,13 @@ mod tests { bar2="qux\nquux" "#}); - assert_snapshot!(env, @r###" + assert_snapshot!(env, @r" foo=bar bar=baz foo2=qux\nquux bar2=qux quux - "###); + "); } #[test] @@ -1038,11 +1038,11 @@ mod tests { foo="bar" "#}); - assert_snapshot!(env, @r###" + assert_snapshot!(env, @r" path_add /foo path_add ./bar foo=bar - "###); + "); let env = parse_env(formatdoc! {r#" env_path="./bar" @@ -1053,16 +1053,16 @@ mod tests { [env] _.path = "./bar" "#}); - assert_debug_snapshot!(env, @r###""path_add ./bar""###); + assert_debug_snapshot!(env, @r#""path_add ./bar""#); let env = parse_env(formatdoc! {r#" [env] _.path = ["/foo", "./bar"] "#}); - assert_snapshot!(env, @r###" + assert_snapshot!(env, @r" path_add /foo path_add ./bar - "###); + "); let env = parse_env(formatdoc! {r#" [[env]] @@ -1070,20 +1070,20 @@ mod tests { [[env]] _.path = "./bar" "#}); - assert_snapshot!(env, @r###" + assert_snapshot!(env, @r" path_add /foo path_add ./bar - "###); + "); let env = parse_env(formatdoc! {r#" env_path = "/foo" [env] _.path = "./bar" "#}); - assert_snapshot!(env, @r###" + assert_snapshot!(env, @r" path_add /foo path_add ./bar - "###); + "); } #[test] @@ -1093,31 +1093,31 @@ mod tests { env_file = ".env" "#}); - assert_debug_snapshot!(env, @r###""dotenv .env""###); + assert_debug_snapshot!(env, @r#""dotenv .env""#); let env = parse_env(formatdoc! {r#" env_file=[".env", ".env2"] "#}); - assert_debug_snapshot!(env, @r###""dotenv .env\ndotenv .env2""###); + assert_debug_snapshot!(env, @r#""dotenv .env\ndotenv .env2""#); let env = parse_env(formatdoc! {r#" [env] _.file = ".env" "#}); - assert_debug_snapshot!(env, @r###""dotenv .env""###); + assert_debug_snapshot!(env, @r#""dotenv .env""#); let env = parse_env(formatdoc! {r#" [env] _.file = [".env", ".env2"] "#}); - assert_debug_snapshot!(env, @r###""dotenv .env\ndotenv .env2""###); + assert_debug_snapshot!(env, @r#""dotenv .env\ndotenv .env2""#); let env = parse_env(formatdoc! {r#" dotenv = ".env" [env] _.file = ".env2" "#}); - assert_debug_snapshot!(env, @r###""dotenv .env\ndotenv .env2""###); + assert_debug_snapshot!(env, @r#""dotenv .env\ndotenv .env2""#); } #[test] @@ -1241,14 +1241,14 @@ mod tests { _.file=".env" foo3="3" "#}; - assert_snapshot!(parse_env(toml), @r###" + assert_snapshot!(parse_env(toml), @r" foo1=1 unset rm path_add /foo dotenv .env foo2=2 foo3=3 - "###); + "); } #[test] @@ -1273,7 +1273,7 @@ mod tests { foo6="6" _.source="/baz2" "#}; - assert_snapshot!(parse_env(toml), @r###" + assert_snapshot!(parse_env(toml), @r" foo1=1 unset rm path_add /foo @@ -1288,7 +1288,7 @@ mod tests { source /baz2 foo5=5 foo6=6 - "###); + "); } fn parse(s: String) -> MiseToml { diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-2.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-2.snap index 0433d655e..24cdc36ff 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-2.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-2.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: dump +snapshot_kind: text --- min_version = "2024.1.1" [env] diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-3.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-3.snap index efa04aea7..e641ac57d 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-3.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-3.snap @@ -1,5 +1,6 @@ --- source: src/config/config_file/mise_toml.rs expression: cf +snapshot_kind: text --- ~/cwd/.test.mise.toml: diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-4.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-4.snap index 33961d141..7ee2b6f43 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-4.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__env-4.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf +snapshot_kind: text --- MiseToml(~/cwd/.test.mise.toml): ToolRequestSet: { diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-2.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-2.snap index 57f454937..f32365d5b 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-2.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-2.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.plugins().unwrap() +snapshot_kind: text --- { "node": "https://github.com/jdx/rtx-node", diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-3.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-3.snap index 4319dca96..3c7f93d94 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-3.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-3.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: "replace_path(&format!(\"{:#?}\", cf.to_tool_request_set().unwrap()))" +snapshot_kind: text --- ToolRequestSet { tools: { diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-4.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-4.snap index c8d84310c..b1f0ef4bb 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-4.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-4.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.alias +snapshot_kind: text --- { BackendArg("node"): { diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-5.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-5.snap index bfcb4bac5..8b66ab299 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-5.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture-5.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: "replace_path(&format!(\"{:#?}\", &cf))" +snapshot_kind: text --- MiseToml(~/fixtures/.mise.toml): ToolRequestSet: terraform@1.0.0 node@18 node@prefix:20 node@ref:master node@path:~/.nodes/18 jq@prefix:1.6 shellcheck@0.9.0 python@3.10.0 python@3.9.0 { diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture.snap index 702328c9d..ca870f53b 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__fixture.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.env_entries().unwrap() +snapshot_kind: text --- [ Val( diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-2.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-2.snap index d096a3a03..736adfee8 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-2.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-2.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.dump().unwrap() +snapshot_kind: text --- [alias.node] 18 = "18.0.0" diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-3.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-3.snap index efa04aea7..e641ac57d 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-3.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-3.snap @@ -1,5 +1,6 @@ --- source: src/config/config_file/mise_toml.rs expression: cf +snapshot_kind: text --- ~/cwd/.test.mise.toml: diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-4.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-4.snap index 41f0d25c1..f8143a37b 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-4.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias-4.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf +snapshot_kind: text --- MiseToml(~/cwd/.test.mise.toml): ToolRequestSet: { diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias.snap index dcc27c900..c803be759 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_alias.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.alias +snapshot_kind: text --- { BackendArg("node"): { diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-2.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-2.snap index 6a22f914c..847b70ec7 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-2.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-2.snap @@ -1,5 +1,6 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.dump().unwrap() +snapshot_kind: text --- diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-3.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-3.snap index 8ff740726..28ea4bd70 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-3.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-3.snap @@ -1,5 +1,6 @@ --- source: src/config/config_file/mise_toml.rs expression: cf +snapshot_kind: text --- /tmp/.mise.toml: diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-4.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-4.snap index c3b0aa541..08e5e9cd7 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-4.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin-4.snap @@ -1,5 +1,6 @@ --- source: src/config/config_file/mise_toml.rs expression: cf +snapshot_kind: text --- MiseToml(/tmp/.mise.toml): ToolRequestSet: diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin.snap index 11d4fcd55..d1dfd2add 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__remove_plugin.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.to_toolset().unwrap() +snapshot_kind: text --- Toolset { versions: {}, diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-2.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-2.snap index 805772222..a39184cb4 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-2.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-2.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.dump().unwrap() +snapshot_kind: text --- [tools] node = ["16.0.1", "18.0.1"] diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-3.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-3.snap index 7b00c4780..fb9b7e6b7 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-3.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-3.snap @@ -1,5 +1,6 @@ --- source: src/config/config_file/mise_toml.rs expression: cf +snapshot_kind: text --- /tmp/.mise.toml: node@16.0.1 node@18.0.1 diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-4.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-4.snap index 9d3be2880..f86a348af 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-4.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions-4.snap @@ -1,5 +1,6 @@ --- source: src/config/config_file/mise_toml.rs expression: cf +snapshot_kind: text --- MiseToml(/tmp/.mise.toml): ToolRequestSet: node@16.0.1 node@18.0.1 diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions.snap index d3d365c2b..0400df6f4 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__replace_versions.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.to_toolset().unwrap() +snapshot_kind: text --- Toolset { versions: { diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__set_alias-2.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__set_alias-2.snap index efa04aea7..e641ac57d 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__set_alias-2.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__set_alias-2.snap @@ -1,5 +1,6 @@ --- source: src/config/config_file/mise_toml.rs expression: cf +snapshot_kind: text --- ~/cwd/.test.mise.toml: diff --git a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__set_alias.snap b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__set_alias.snap index df7bdfaa0..12ed7ce56 100644 --- a/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__set_alias.snap +++ b/src/config/config_file/snapshots/mise__config__config_file__mise_toml__tests__set_alias.snap @@ -1,6 +1,7 @@ --- source: src/config/config_file/mise_toml.rs expression: cf.alias +snapshot_kind: text --- { BackendArg("node"): { diff --git a/src/config/config_file/tool_versions.rs b/src/config/config_file/tool_versions.rs index 0eb771c0f..458986c13 100644 --- a/src/config/config_file/tool_versions.rs +++ b/src/config/config_file/tool_versions.rs @@ -270,9 +270,7 @@ pub(crate) mod tests { "}; let path = env::current_dir().unwrap().join(".test-tool-versions"); let tv = ToolVersions::parse_str(orig, path).unwrap(); - assert_snapshot!(tv.dump().unwrap(), @r###" - ruby 3.0.5 - "###); + assert_snapshot!(tv.dump().unwrap(), @"ruby 3.0.5"); } #[test] @@ -286,10 +284,10 @@ pub(crate) mod tests { assert_cli!("trust", path.to_string_lossy()); let tv = ToolVersions::parse_str(orig, path.clone()).unwrap(); assert_cli!("trust", "--untrust", path.to_string_lossy()); - assert_snapshot!(tv.dump().unwrap(), @r###" + assert_snapshot!(tv.dump().unwrap(), @r" ruby 3.0.5 python 3.11.0 - "###); + "); } #[test] diff --git a/src/config/env_directive.rs b/src/config/env_directive.rs index f5ccfeacb..427f64fdd 100644 --- a/src/config/env_directive.rs +++ b/src/config/env_directive.rs @@ -428,7 +428,7 @@ mod tests { .unwrap(); assert_debug_snapshot!( results.env_paths.into_iter().map(|p| replace_path(&p.display().to_string())).collect::>(), - @r###" + @r#" [ "/path/1", "/path/2", @@ -436,7 +436,7 @@ mod tests { "~/cwd/rel/1", "~/cwd/rel2/2", ] - "### + "# ); } @@ -467,12 +467,12 @@ mod tests { // expect order to be reversed as it processes directives from global to dir specific assert_debug_snapshot!( results.env_paths.into_iter().map(|p| replace_path(&p.display().to_string())).collect::>(), - @r###" + @r#" [ "~/cwd/bin", "/bin", ] - "### + "# ); } } diff --git a/src/config/snapshots/mise__config__tests__load.snap b/src/config/snapshots/mise__config__tests__load.snap index f782f7ace..dba520615 100644 --- a/src/config/snapshots/mise__config__tests__load.snap +++ b/src/config/snapshots/mise__config__tests__load.snap @@ -1,6 +1,7 @@ --- source: src/config/mod.rs expression: config +snapshot_kind: text --- Config { Config Files: [ diff --git a/src/env_diff.rs b/src/env_diff.rs index 388da9784..ca20e6dbb 100644 --- a/src/env_diff.rs +++ b/src/env_diff.rs @@ -275,11 +275,11 @@ mod tests { _ => None, }) .collect::>(); - assert_debug_snapshot!(to_remove, @r###" + assert_debug_snapshot!(to_remove, @r#" [ "c", ] - "###); + "#); let to_add = patches .iter() .filter_map(|p| match p { @@ -295,14 +295,14 @@ mod tests { _ => None, }) .collect::>(); - assert_debug_snapshot!(to_change, @r###" + assert_debug_snapshot!(to_change, @r#" [ ( "b", "2", ), ] - "###); + "#); } fn new_from_hashmap() -> HashMap { diff --git a/src/plugins/mise_plugin_toml.rs b/src/plugins/mise_plugin_toml.rs index 434e53ac5..f4e56c451 100644 --- a/src/plugins/mise_plugin_toml.rs +++ b/src/plugins/mise_plugin_toml.rs @@ -129,7 +129,7 @@ mod tests { cache-key = ["foo"] "#}); - assert_debug_snapshot!(cf.exec_env, @r###" + assert_debug_snapshot!(cf.exec_env, @r#" MisePluginTomlScriptConfig { cache_key: Some( [ @@ -139,7 +139,7 @@ mod tests { ), data: None, } - "###); + "#); } fn parse(s: &str) -> MisePluginToml { diff --git a/src/plugins/snapshots/mise__plugins__mise_plugin_toml__tests__fixture.snap b/src/plugins/snapshots/mise__plugins__mise_plugin_toml__tests__fixture.snap index d50624a2d..30ead91d0 100644 --- a/src/plugins/snapshots/mise__plugins__mise_plugin_toml__tests__fixture.snap +++ b/src/plugins/snapshots/mise__plugins__mise_plugin_toml__tests__fixture.snap @@ -1,6 +1,7 @@ --- source: src/plugins/mise_plugin_toml.rs expression: cf.exec_env +snapshot_kind: text --- MisePluginTomlScriptConfig { cache_key: Some( diff --git a/src/shell/snapshots/mise__shell__bash__tests__activate.snap b/src/shell/snapshots/mise__shell__bash__tests__activate.snap index 735daca5b..b2fb26138 100644 --- a/src/shell/snapshots/mise__shell__bash__tests__activate.snap +++ b/src/shell/snapshots/mise__shell__bash__tests__activate.snap @@ -1,6 +1,7 @@ --- source: src/shell/bash.rs expression: "bash.activate(exe, \" --status\".into())" +snapshot_kind: text --- export MISE_SHELL=bash export __MISE_ORIG_PATH="$PATH" diff --git a/src/shell/snapshots/mise__shell__bash__tests__deactivate.snap b/src/shell/snapshots/mise__shell__bash__tests__deactivate.snap index 30dbff45f..1a6dd3f06 100644 --- a/src/shell/snapshots/mise__shell__bash__tests__deactivate.snap +++ b/src/shell/snapshots/mise__shell__bash__tests__deactivate.snap @@ -1,6 +1,7 @@ --- source: src/shell/bash.rs expression: replace_path(&deactivate) +snapshot_kind: text --- PROMPT_COMMAND="${PROMPT_COMMAND//_mise_hook;/}" PROMPT_COMMAND="${PROMPT_COMMAND//_mise_hook/}" diff --git a/src/shell/snapshots/mise__shell__bash__tests__prepend_env.snap b/src/shell/snapshots/mise__shell__bash__tests__prepend_env.snap index 5238bebae..4f3f3a77e 100644 --- a/src/shell/snapshots/mise__shell__bash__tests__prepend_env.snap +++ b/src/shell/snapshots/mise__shell__bash__tests__prepend_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/bash.rs expression: "replace_path(&bash.prepend_env(\"PATH\", \"/some/dir:/2/dir\"))" +snapshot_kind: text --- export PATH="/some/dir:/2/dir:$PATH" diff --git a/src/shell/snapshots/mise__shell__bash__tests__set_env.snap b/src/shell/snapshots/mise__shell__bash__tests__set_env.snap index 46fe3a6f5..ff25b14af 100644 --- a/src/shell/snapshots/mise__shell__bash__tests__set_env.snap +++ b/src/shell/snapshots/mise__shell__bash__tests__set_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/bash.rs expression: "Bash::default().set_env(\"FOO\", \"1\")" +snapshot_kind: text --- export FOO=1 diff --git a/src/shell/snapshots/mise__shell__bash__tests__unset_env.snap b/src/shell/snapshots/mise__shell__bash__tests__unset_env.snap index b65e646dd..8e315805e 100644 --- a/src/shell/snapshots/mise__shell__bash__tests__unset_env.snap +++ b/src/shell/snapshots/mise__shell__bash__tests__unset_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/bash.rs expression: "Bash::default().unset_env(\"FOO\")" +snapshot_kind: text --- unset FOO diff --git a/src/shell/snapshots/mise__shell__elvish__tests__deactivate.snap b/src/shell/snapshots/mise__shell__elvish__tests__deactivate.snap index 6ec0eb6b3..634eb8758 100644 --- a/src/shell/snapshots/mise__shell__elvish__tests__deactivate.snap +++ b/src/shell/snapshots/mise__shell__elvish__tests__deactivate.snap @@ -1,6 +1,7 @@ --- source: src/shell/elvish.rs expression: replace_path(&deactivate) +snapshot_kind: text --- unset-env MISE_SHELL unset-env __MISE_DIFF diff --git a/src/shell/snapshots/mise__shell__elvish__tests__hook_init.snap b/src/shell/snapshots/mise__shell__elvish__tests__hook_init.snap index 1610ae27a..8781ddb77 100644 --- a/src/shell/snapshots/mise__shell__elvish__tests__hook_init.snap +++ b/src/shell/snapshots/mise__shell__elvish__tests__hook_init.snap @@ -1,6 +1,7 @@ --- source: src/shell/elvish.rs expression: "elvish.activate(exe, \" --status\".into())" +snapshot_kind: text --- var hook-enabled = $false diff --git a/src/shell/snapshots/mise__shell__elvish__tests__prepend_env.snap b/src/shell/snapshots/mise__shell__elvish__tests__prepend_env.snap index 306919713..66e62c979 100644 --- a/src/shell/snapshots/mise__shell__elvish__tests__prepend_env.snap +++ b/src/shell/snapshots/mise__shell__elvish__tests__prepend_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/elvish.rs expression: "replace_path(&sh.prepend_env(\"PATH\", \"/some/dir:/2/dir\"))" +snapshot_kind: text --- set-env PATH '/some/dir:/2/dir'(get-env PATH) diff --git a/src/shell/snapshots/mise__shell__elvish__tests__set_env.snap b/src/shell/snapshots/mise__shell__elvish__tests__set_env.snap index 1859c5e3a..9c2e8397e 100644 --- a/src/shell/snapshots/mise__shell__elvish__tests__set_env.snap +++ b/src/shell/snapshots/mise__shell__elvish__tests__set_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/elvish.rs expression: "Elvish::default().set_env(\"FOO\", \"1\")" +snapshot_kind: text --- set-env FOO 1 diff --git a/src/shell/snapshots/mise__shell__elvish__tests__unset_env.snap b/src/shell/snapshots/mise__shell__elvish__tests__unset_env.snap index 4fa7c2e3b..30b9de155 100644 --- a/src/shell/snapshots/mise__shell__elvish__tests__unset_env.snap +++ b/src/shell/snapshots/mise__shell__elvish__tests__unset_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/elvish.rs expression: "Elvish::default().unset_env(\"FOO\")" +snapshot_kind: text --- unset-env FOO diff --git a/src/shell/snapshots/mise__shell__fish__tests__activate.snap b/src/shell/snapshots/mise__shell__fish__tests__activate.snap index eeaccee29..4adf13c99 100644 --- a/src/shell/snapshots/mise__shell__fish__tests__activate.snap +++ b/src/shell/snapshots/mise__shell__fish__tests__activate.snap @@ -1,6 +1,7 @@ --- source: src/shell/fish.rs expression: "fish.activate(exe, \" --status\".into())" +snapshot_kind: text --- set -gx MISE_SHELL fish set -gx __MISE_ORIG_PATH $PATH diff --git a/src/shell/snapshots/mise__shell__fish__tests__deactivate.snap b/src/shell/snapshots/mise__shell__fish__tests__deactivate.snap index bfd8f2c2b..11cfc5459 100644 --- a/src/shell/snapshots/mise__shell__fish__tests__deactivate.snap +++ b/src/shell/snapshots/mise__shell__fish__tests__deactivate.snap @@ -1,6 +1,7 @@ --- source: src/shell/fish.rs expression: replace_path(&deactivate) +snapshot_kind: text --- functions --erase __mise_env_eval functions --erase __mise_env_eval_2 diff --git a/src/shell/snapshots/mise__shell__fish__tests__prepend_env.snap b/src/shell/snapshots/mise__shell__fish__tests__prepend_env.snap index 55894fa49..fe9d9c914 100644 --- a/src/shell/snapshots/mise__shell__fish__tests__prepend_env.snap +++ b/src/shell/snapshots/mise__shell__fish__tests__prepend_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/fish.rs expression: "replace_path(&sh.prepend_env(\"PATH\", \"/some/dir:/2/dir\"))" +snapshot_kind: text --- set -gx PATH '/some/dir:/2/dir' $PATH diff --git a/src/shell/snapshots/mise__shell__fish__tests__set_env.snap b/src/shell/snapshots/mise__shell__fish__tests__set_env.snap index 91fa705a0..0490f468d 100644 --- a/src/shell/snapshots/mise__shell__fish__tests__set_env.snap +++ b/src/shell/snapshots/mise__shell__fish__tests__set_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/fish.rs expression: "Fish::default().set_env(\"FOO\", \"1\")" +snapshot_kind: text --- set -gx FOO 1 diff --git a/src/shell/snapshots/mise__shell__fish__tests__unset_env.snap b/src/shell/snapshots/mise__shell__fish__tests__unset_env.snap index 4ca667054..49e4d4dc3 100644 --- a/src/shell/snapshots/mise__shell__fish__tests__unset_env.snap +++ b/src/shell/snapshots/mise__shell__fish__tests__unset_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/fish.rs expression: "Fish::default().unset_env(\"FOO\")" +snapshot_kind: text --- set -e FOO diff --git a/src/shell/snapshots/mise__shell__nushell__tests__deactivate.snap b/src/shell/snapshots/mise__shell__nushell__tests__deactivate.snap index 330b460bb..03baf7dc0 100644 --- a/src/shell/snapshots/mise__shell__nushell__tests__deactivate.snap +++ b/src/shell/snapshots/mise__shell__nushell__tests__deactivate.snap @@ -1,5 +1,6 @@ --- source: src/shell/nushell.rs expression: replace_path(&deactivate) +snapshot_kind: text --- hide,MISE_SHELL, diff --git a/src/shell/snapshots/mise__shell__nushell__tests__hook_init.snap b/src/shell/snapshots/mise__shell__nushell__tests__hook_init.snap index bf7375483..7f852cf6b 100644 --- a/src/shell/snapshots/mise__shell__nushell__tests__hook_init.snap +++ b/src/shell/snapshots/mise__shell__nushell__tests__hook_init.snap @@ -1,6 +1,7 @@ --- source: src/shell/nushell.rs expression: "nushell.activate(exe, \" --status\".into())" +snapshot_kind: text --- export-env { $env.MISE_SHELL = "nu" diff --git a/src/shell/snapshots/mise__shell__nushell__tests__prepend_env.snap b/src/shell/snapshots/mise__shell__nushell__tests__prepend_env.snap index 0f233ac0d..934e5f0c8 100644 --- a/src/shell/snapshots/mise__shell__nushell__tests__prepend_env.snap +++ b/src/shell/snapshots/mise__shell__nushell__tests__prepend_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/nushell.rs expression: "replace_path(&sh.prepend_env(\"PATH\", \"/some/dir:/2/dir\"))" +snapshot_kind: text --- $env.PATH = ($env.PATH | prepend '/some/dir:/2/dir') diff --git a/src/shell/snapshots/mise__shell__nushell__tests__set_env.snap b/src/shell/snapshots/mise__shell__nushell__tests__set_env.snap index 48b231c83..db0724633 100644 --- a/src/shell/snapshots/mise__shell__nushell__tests__set_env.snap +++ b/src/shell/snapshots/mise__shell__nushell__tests__set_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/nushell.rs expression: "Nushell::default().set_env(\"FOO\", \"1\")" +snapshot_kind: text --- set,FOO,1 diff --git a/src/shell/snapshots/mise__shell__nushell__tests__unset_env.snap b/src/shell/snapshots/mise__shell__nushell__tests__unset_env.snap index 354b08723..af6428d20 100644 --- a/src/shell/snapshots/mise__shell__nushell__tests__unset_env.snap +++ b/src/shell/snapshots/mise__shell__nushell__tests__unset_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/nushell.rs expression: "Nushell::default().unset_env(\"FOO\")" +snapshot_kind: text --- hide,FOO, diff --git a/src/shell/snapshots/mise__shell__xonsh__tests__hook_init.snap b/src/shell/snapshots/mise__shell__xonsh__tests__hook_init.snap index 824a5d2d0..a3326e0fe 100644 --- a/src/shell/snapshots/mise__shell__xonsh__tests__hook_init.snap +++ b/src/shell/snapshots/mise__shell__xonsh__tests__hook_init.snap @@ -1,6 +1,7 @@ --- source: src/shell/xonsh.rs expression: "xonsh.activate(exe, \" --status\".into())" +snapshot_kind: text --- from os import environ import subprocess diff --git a/src/shell/snapshots/mise__shell__xonsh__tests__prepend_env.snap b/src/shell/snapshots/mise__shell__xonsh__tests__prepend_env.snap index 2f1241421..54f44e78e 100644 --- a/src/shell/snapshots/mise__shell__xonsh__tests__prepend_env.snap +++ b/src/shell/snapshots/mise__shell__xonsh__tests__prepend_env.snap @@ -1,6 +1,7 @@ --- source: src/shell/xonsh.rs expression: "replace_path(&sh.prepend_env(\"PATH\", \"/some/dir:/2/dir\"))" +snapshot_kind: text --- from os import environ from xonsh.built_ins import XSH diff --git a/src/shell/snapshots/mise__shell__xonsh__tests__set_env.snap b/src/shell/snapshots/mise__shell__xonsh__tests__set_env.snap index 10433b6fd..91c8075d2 100644 --- a/src/shell/snapshots/mise__shell__xonsh__tests__set_env.snap +++ b/src/shell/snapshots/mise__shell__xonsh__tests__set_env.snap @@ -1,6 +1,7 @@ --- source: src/shell/xonsh.rs expression: "Xonsh::default().set_env(\"FOO\", \"1\")" +snapshot_kind: text --- from os import environ from xonsh.built_ins import XSH diff --git a/src/shell/snapshots/mise__shell__xonsh__tests__unset_env.snap b/src/shell/snapshots/mise__shell__xonsh__tests__unset_env.snap index 38e4c7d87..5ecc2e1a3 100644 --- a/src/shell/snapshots/mise__shell__xonsh__tests__unset_env.snap +++ b/src/shell/snapshots/mise__shell__xonsh__tests__unset_env.snap @@ -1,6 +1,7 @@ --- source: src/shell/xonsh.rs expression: "Xonsh::default().unset_env(\"FOO\")" +snapshot_kind: text --- from os import environ from xonsh.built_ins import XSH diff --git a/src/shell/snapshots/mise__shell__xonsh__tests__xonsh_deactivate.snap b/src/shell/snapshots/mise__shell__xonsh__tests__xonsh_deactivate.snap index d748f8d79..03d678e08 100644 --- a/src/shell/snapshots/mise__shell__xonsh__tests__xonsh_deactivate.snap +++ b/src/shell/snapshots/mise__shell__xonsh__tests__xonsh_deactivate.snap @@ -1,6 +1,7 @@ --- source: src/shell/xonsh.rs expression: replace_path(&deactivate) +snapshot_kind: text --- import os from xonsh.built_ins import XSH diff --git a/src/shell/snapshots/mise__shell__zsh__tests__activate.snap b/src/shell/snapshots/mise__shell__zsh__tests__activate.snap index 519352327..d3a1a5caf 100644 --- a/src/shell/snapshots/mise__shell__zsh__tests__activate.snap +++ b/src/shell/snapshots/mise__shell__zsh__tests__activate.snap @@ -1,6 +1,7 @@ --- source: src/shell/zsh.rs expression: "zsh.activate(exe, \" --status\".into())" +snapshot_kind: text --- export MISE_SHELL=zsh export __MISE_ORIG_PATH="$PATH" diff --git a/src/shell/snapshots/mise__shell__zsh__tests__deactivate.snap b/src/shell/snapshots/mise__shell__zsh__tests__deactivate.snap index 65c266ee7..8824337bf 100644 --- a/src/shell/snapshots/mise__shell__zsh__tests__deactivate.snap +++ b/src/shell/snapshots/mise__shell__zsh__tests__deactivate.snap @@ -1,6 +1,7 @@ --- source: src/shell/zsh.rs expression: replace_path(&deactivate) +snapshot_kind: text --- precmd_functions=( ${precmd_functions:#_mise_hook} ) chpwd_functions=( ${chpwd_functions:#_mise_hook} ) diff --git a/src/shell/snapshots/mise__shell__zsh__tests__prepend_env.snap b/src/shell/snapshots/mise__shell__zsh__tests__prepend_env.snap index 3254dbc10..63fcf4fb6 100644 --- a/src/shell/snapshots/mise__shell__zsh__tests__prepend_env.snap +++ b/src/shell/snapshots/mise__shell__zsh__tests__prepend_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/zsh.rs expression: "replace_path(&sh.prepend_env(\"PATH\", \"/some/dir:/2/dir\"))" +snapshot_kind: text --- export PATH="/some/dir:/2/dir:$PATH" diff --git a/src/shell/snapshots/mise__shell__zsh__tests__set_env.snap b/src/shell/snapshots/mise__shell__zsh__tests__set_env.snap index 6f5bfc0c4..63c873eea 100644 --- a/src/shell/snapshots/mise__shell__zsh__tests__set_env.snap +++ b/src/shell/snapshots/mise__shell__zsh__tests__set_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/zsh.rs expression: "Zsh::default().set_env(\"FOO\", \"1\")" +snapshot_kind: text --- export FOO=1 diff --git a/src/shell/snapshots/mise__shell__zsh__tests__unset_env.snap b/src/shell/snapshots/mise__shell__zsh__tests__unset_env.snap index f4eb72be0..d62f21710 100644 --- a/src/shell/snapshots/mise__shell__zsh__tests__unset_env.snap +++ b/src/shell/snapshots/mise__shell__zsh__tests__unset_env.snap @@ -1,5 +1,6 @@ --- source: src/shell/zsh.rs expression: "Zsh::default().unset_env(\"FOO\")" +snapshot_kind: text --- unset FOO diff --git a/src/snapshots/mise__direnv__tests__add_path_to_old_and_new-2.snap b/src/snapshots/mise__direnv__tests__add_path_to_old_and_new-2.snap index e5c2a471c..cb7a15d26 100644 --- a/src/snapshots/mise__direnv__tests__add_path_to_old_and_new-2.snap +++ b/src/snapshots/mise__direnv__tests__add_path_to_old_and_new-2.snap @@ -1,5 +1,6 @@ --- source: src/direnv.rs expression: "diff.new.get(\"PATH\").unwrap()" +snapshot_kind: text --- /tmp:/foo:/bar:/new diff --git a/src/snapshots/mise__direnv__tests__add_path_to_old_and_new.snap b/src/snapshots/mise__direnv__tests__add_path_to_old_and_new.snap index 4c11af15a..daa9c4be5 100644 --- a/src/snapshots/mise__direnv__tests__add_path_to_old_and_new.snap +++ b/src/snapshots/mise__direnv__tests__add_path_to_old_and_new.snap @@ -1,5 +1,6 @@ --- source: src/direnv.rs expression: "diff.old.get(\"PATH\").unwrap()" +snapshot_kind: text --- /tmp:/foo:/tmp:/bar:/old diff --git a/src/snapshots/mise__direnv__tests__dump-2.snap b/src/snapshots/mise__direnv__tests__dump-2.snap index 95677fef4..504c1963a 100644 --- a/src/snapshots/mise__direnv__tests__dump-2.snap +++ b/src/snapshots/mise__direnv__tests__dump-2.snap @@ -1,5 +1,6 @@ --- source: src/direnv.rs expression: diff +snapshot_kind: text --- DirenvDiff { old: ["a=b"], new: ["c=d"] } diff --git a/src/snapshots/mise__direnv__tests__dump.snap b/src/snapshots/mise__direnv__tests__dump.snap index 6bff483eb..281974477 100644 --- a/src/snapshots/mise__direnv__tests__dump.snap +++ b/src/snapshots/mise__direnv__tests__dump.snap @@ -1,5 +1,6 @@ --- source: src/direnv.rs expression: "&output" +snapshot_kind: text --- eAGrVipQsqpWSlSyUkpSqtVRygPxkoG8FKXaWgB2AQf9 diff --git a/src/snapshots/mise__direnv__tests__null_path-2.snap b/src/snapshots/mise__direnv__tests__null_path-2.snap index f05c7b4e5..57358ad0f 100644 --- a/src/snapshots/mise__direnv__tests__null_path-2.snap +++ b/src/snapshots/mise__direnv__tests__null_path-2.snap @@ -1,5 +1,6 @@ --- source: src/direnv.rs expression: "diff.new.get(\"PATH\").unwrap()" +snapshot_kind: text --- /tmp diff --git a/src/snapshots/mise__direnv__tests__null_path.snap b/src/snapshots/mise__direnv__tests__null_path.snap index a8c057a3a..a147bc972 100644 --- a/src/snapshots/mise__direnv__tests__null_path.snap +++ b/src/snapshots/mise__direnv__tests__null_path.snap @@ -1,5 +1,6 @@ --- source: src/direnv.rs expression: "diff.old.get(\"PATH\").unwrap()" +snapshot_kind: text --- /tmp diff --git a/src/snapshots/mise__direnv__tests__parse.snap b/src/snapshots/mise__direnv__tests__parse.snap index fc4fc403a..792159fb0 100644 --- a/src/snapshots/mise__direnv__tests__parse.snap +++ b/src/snapshots/mise__direnv__tests__parse.snap @@ -1,5 +1,6 @@ --- source: src/direnv.rs expression: diff +snapshot_kind: text --- DirenvDiff { old: ["FOO=orig"], new: ["DIRENV_DIR=-/private/var/folders/0s/l3b8b_fs7fv5wdpr4lh9bd340000gr/T/tmp.prRveAyl", "DIRENV_FILE=/private/var/folders/0s/l3b8b_fs7fv5wdpr4lh9bd340000gr/T/tmp.prRveAyl/.envrc", "DIRENV_WATCHES=eJxszstK9DAUAOB3ybr0JE2aS3f_4l8KIroSkVxObCUzLScxMyK-u7gSxCf4vscPduvbyhYGB23dN4TuCfJeElIFXqHIYMNzrib3-ZIOUmV1IUnFOecvBPfQTsd40F3Hf-8FRjx3imxgN3tq2wnZIrSZhXNOm4H9v261VbY0esPP4Yd-qN_Ya7rCWPboC9TVE0LaCM8dfCn7BaTOUfKsJztbboLwShqXnQhm8koZTF7LKUqtjEWRuJ1zTEEoaTJ3U5D6r5PTv05PXwEAAP__GahVUg==", "FOO=bar"] } diff --git a/src/snapshots/mise__env_diff__tests__diff.snap b/src/snapshots/mise__env_diff__tests__diff.snap index e7401df70..047e4edec 100644 --- a/src/snapshots/mise__env_diff__tests__diff.snap +++ b/src/snapshots/mise__env_diff__tests__diff.snap @@ -1,6 +1,7 @@ --- source: src/env_diff.rs expression: diff.to_patches() +snapshot_kind: text --- [ Change( diff --git a/src/snapshots/mise__env_diff__tests__from_bash_script.snap b/src/snapshots/mise__env_diff__tests__from_bash_script.snap index d528248e0..9f21d7795 100644 --- a/src/snapshots/mise__env_diff__tests__from_bash_script.snap +++ b/src/snapshots/mise__env_diff__tests__from_bash_script.snap @@ -1,6 +1,7 @@ --- source: src/env_diff.rs expression: ed +snapshot_kind: text --- EnvDiff { old: [ diff --git a/src/snapshots/mise__env_diff__tests__serialize.snap b/src/snapshots/mise__env_diff__tests__serialize.snap index 28ef79ea6..3ded0850a 100644 --- a/src/snapshots/mise__env_diff__tests__serialize.snap +++ b/src/snapshots/mise__env_diff__tests__serialize.snap @@ -1,6 +1,7 @@ --- source: src/env_diff.rs expression: deserialized.to_patches() +snapshot_kind: text --- [ Change( diff --git a/src/snapshots/mise__hash__tests__hash_sha256.snap b/src/snapshots/mise__hash__tests__hash_sha256.snap index 9deb56f47..7eea16e7e 100644 --- a/src/snapshots/mise__hash__tests__hash_sha256.snap +++ b/src/snapshots/mise__hash__tests__hash_sha256.snap @@ -1,5 +1,6 @@ --- source: src/hash.rs expression: hash +snapshot_kind: text --- 0b0debe521bb0f275806469aa295bb0fab42f0fbd3a1bea15b3f7ccd06985a4a diff --git a/src/snapshots/mise__runtime_symlinks__tests__list_symlinks.snap b/src/snapshots/mise__runtime_symlinks__tests__list_symlinks.snap index 3b3e427d0..006547266 100644 --- a/src/snapshots/mise__runtime_symlinks__tests__list_symlinks.snap +++ b/src/snapshots/mise__runtime_symlinks__tests__list_symlinks.snap @@ -1,6 +1,7 @@ --- source: src/runtime_symlinks.rs expression: symlinks +snapshot_kind: text --- { "latest": "./3.1.0",