Skip to content

Commit 4b462b6

Browse files
committed
Update integration test to show bug.
This updates the tests introduced in: jdx#8291 to demonstrate a case where prepare steps are not properly run.
1 parent c29d272 commit 4b462b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

e2e/cli/test_prepare

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ experimental_monorepo_root = true
363363
364364
[monorepo]
365365
config_roots = ["subapp"]
366+
367+
[tasks.check]
368+
depends = "//...:check"
366369
EOF
367370

368371
cat >subapp/mise.toml <<'EOF'
@@ -381,5 +384,10 @@ touch subapp/input.txt
381384
# Run the task from root using monorepo syntax
382385
assert_contains "mise run //subapp:check" "SUBAPP_PREPARE_OK"
383386

387+
# We should get the same result when running subapp tasks via dependencies:
388+
touch subapp/input.txt
389+
rm subapp/deps_marker
390+
assert_contains "mise run //:check" "SUBAPP_PREPARE_OK"
391+
384392
# Clean up
385393
rm -rf subapp mise.toml

0 commit comments

Comments
 (0)