From 03e6afbaa617826be788281706f65c63156783d3 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 18 Aug 2023 16:03:07 -0500 Subject: [PATCH] test(cli): Verify missing config error --- crates/typos-cli/tests/cmd/missing-config.in/.keep | 0 crates/typos-cli/tests/cmd/missing-config.toml | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 crates/typos-cli/tests/cmd/missing-config.in/.keep create mode 100644 crates/typos-cli/tests/cmd/missing-config.toml diff --git a/crates/typos-cli/tests/cmd/missing-config.in/.keep b/crates/typos-cli/tests/cmd/missing-config.in/.keep new file mode 100644 index 0000000..e69de29 diff --git a/crates/typos-cli/tests/cmd/missing-config.toml b/crates/typos-cli/tests/cmd/missing-config.toml new file mode 100644 index 0000000..fa88e3b --- /dev/null +++ b/crates/typos-cli/tests/cmd/missing-config.toml @@ -0,0 +1,8 @@ +bin.name = "typos" +args = "--config foo.toml" +status.code = 78 +stdin = "" +# stdout doesn't have stable order +stderr = """ +No such file or directory (os error 2) +"""