just 1.50.0

🤖 Just a command runner
Documentation
use super::*;

#[test]
fn linewise() {
  Test::new()
    .justfile(
      "
        [no-cd]
        foo:
          cat bar
      ",
    )
    .current_dir("foo")
    .tree(tree! {
      foo: {
        bar: "hello",
      }
    })
    .stderr("cat bar\n")
    .stdout("hello")
    .success();
}

#[test]
fn shebang() {
  Test::new()
    .justfile(
      "
        [no-cd]
        foo:
          #!/bin/sh
          cat bar
      ",
    )
    .current_dir("foo")
    .tree(tree! {
      foo: {
        bar: "hello",
      }
    })
    .stdout("hello")
    .success();
}