aboutsummaryrefslogtreecommitdiffstats
path: root/tests/options_doc.lua
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2023-08-29 16:19:34 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2023-08-29 16:23:39 -0700
commit03a37f1b53d83af7aee10fc3ffee9f3a05d09e2e (patch)
tree10c30117d98197cd8cfe02226aa4f6308bdf6aba /tests/options_doc.lua
parentbf68b4a987231b18018f9621cfb15670a9a681b3 (diff)
feat: add support for environment variables (#8)
Diffstat (limited to 'tests/options_doc.lua')
-rw-r--r--tests/options_doc.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/options_doc.lua b/tests/options_doc.lua
index f559d89..bdbf5df 100644
--- a/tests/options_doc.lua
+++ b/tests/options_doc.lua
@@ -48,6 +48,10 @@ require("conform").setup({
end,
-- Exit codes that indicate success (default {0})
exit_codes = { 0, 1 },
+ -- Environment variables. This can also be a function that returns a table.
+ env = {
+ VAR = "value",
+ },
},
-- These can also be a function that returns the formatter
other_formatter = function()