Skip to content

Commit

Permalink
remove mise.toml from snapshot test asset
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Feb 7, 2025
1 parent 910f195 commit 646d4ef
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
34 changes: 17 additions & 17 deletions core/__snapshots__/core_test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.python]\n version = \"3.13.2\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -213,7 +213,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.go]\n version = \"1.18\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -353,7 +353,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.go]\n version = \"1.23.6\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -498,7 +498,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.bun]\n version = \"1.2.2\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -663,7 +663,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.node]\n version = \"20.18.2\"\n [tools.pnpm]\n version = \"10.2.0\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -844,7 +844,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.node]\n version = \"22.13.1\"\n [tools.pnpm]\n version = \"10.2.0\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -961,7 +961,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.pipx]\n version = \"1.7.1\"\n [tools.python]\n version = \"3.13.1\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -1143,7 +1143,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.python]\n version = \"3.13.1\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -1306,7 +1306,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.pipx]\n version = \"1.7.1\"\n [tools.python]\n version = \"3.13.1\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -1480,7 +1480,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.python]\n version = \"3.11.11\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -1648,7 +1648,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.pipx]\n version = \"1.7.1\"\n [tools.python]\n version = \"3.11.11\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -1916,7 +1916,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.caddy]\n version = \"2.9.1\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -2024,7 +2024,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.caddy]\n version = \"2.9.1\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -2142,7 +2142,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.node]\n version = \"22.13.1\"\n [tools.npm]\n version = \"11.1.0\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -2308,7 +2308,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.node]\n version = \"23.5.0\"\n [tools.npm]\n version = \"9.9.4\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -2458,7 +2458,7 @@
"steps": [
{
"assets": {
"mise.toml": "[tools]\n [tools.node]\n version = \"22.13.1\"\n [tools.npm]\n version = \"9.9.4\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down Expand Up @@ -2652,7 +2652,7 @@
},
{
"assets": {
"mise.toml": "[tools]\n [tools.node]\n version = \"22.13.1\"\n [tools.npm]\n version = \"9.9.4\"\n"
"mise.toml": "[mise.toml]"
},
"commands": [
{
Expand Down
9 changes: 9 additions & 0 deletions core/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ func TestGenerateBuildPlanForExamples(t *testing.T) {

plan := buildResult.Plan

// Remove the mise.toml asset since the versions may change between runs
for _, step := range plan.Steps {
for name := range step.Assets {
if name == "mise.toml" {
step.Assets[name] = "[mise.toml]"
}
}
}

snaps.MatchJSON(t, plan)
})
}
Expand Down

0 comments on commit 646d4ef

Please sign in to comment.