From 55601a7bf01402db3dd0c745f30e66949bb8a8f8 Mon Sep 17 00:00:00 2001 From: Jan Mas Rovira Date: Tue, 3 Dec 2024 12:51:57 +0100 Subject: [PATCH] add smoke test --- tests/smoke/Commands/format.smoke.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/smoke/Commands/format.smoke.yaml b/tests/smoke/Commands/format.smoke.yaml index 1f604f29a1..61fc9e407f 100644 --- a/tests/smoke/Commands/format.smoke.yaml +++ b/tests/smoke/Commands/format.smoke.yaml @@ -168,6 +168,22 @@ tests: stderr: '' exit-status: 1 + - name: format-project-package-dot-juvix + command: + shell: + - bash + script: | + temp=$(mktemp -d) + trap 'rm -rf -- "$temp"' EXIT + cd $temp + juvix init + echo "" >> Package.juvix + juvix format + stderr: '' + stdout: + contains: 'Package.juvix' + exit-status: 1 + - name: format-project-containing-unformatted-from-subdir command: shell: