Select the types of activity you want to include in your feed.
fix(precommit): update init.t cram test expectations
Promote cram test output to match current precommit init behavior: absolute paths in dry-run, proper error messages and exit codes for missing git repos and OCaml projects.
···8899Test dry-run mode shows what would be created
1010 $ precommit init --dry-run
1111- Would create ./.git/hooks/
1212- Would create ./.git/hooks/pre-commit
1313- Would chmod +x ./.git/hooks/pre-commit
1414- Would create ./.git/hooks/commit-msg
1515- Would chmod +x ./.git/hooks/commit-msg
1111+ Would create $TESTCASE_ROOT/test-project/.git/hooks/
1212+ Would create $TESTCASE_ROOT/test-project/.git/hooks/pre-commit
1313+ Would chmod +x $TESTCASE_ROOT/test-project/.git/hooks/pre-commit
1414+ Would create $TESTCASE_ROOT/test-project/.git/hooks/commit-msg
1515+ Would chmod +x $TESTCASE_ROOT/test-project/.git/hooks/commit-msg
1616 Would create ./.ocamlformat
1717 ℹ Would initialise .
1818 ✓ Processed 1 directory
···4444 $ cd no-git-$$
4545 $ echo '(lang dune 3.0)' > dune-project
4646 $ precommit init
4747- ℹ All directories already have hooks installed
4747+ ✗ No git repositories found
4848+ [1]
48494950Test error when not in an OCaml project
5051 $ cd /tmp
···5253 $ cd no-dune-$$
5354 $ git init -q
5455 $ precommit init
5555- ℹ All directories already have hooks installed
5656+ ℹ No OCaml projects found (use --force to install anyway)
5757+ [1]