Skip to content

Commit ae8e75f

Browse files
test: improve isolation from user configs
## Details Reported: #667 Sets the `XDG_CONFIG_HOME` environment variable to a non-existant path at the root of this directory, this should prevent unexpected behavior.
1 parent 5adf089 commit ae8e75f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

doc/render-markdown.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*render-markdown.txt* Improve viewing Markdown in Neovim
2-
For NVIM v0.12.2 Last change: 2026 May 25
2+
For NVIM v0.12.3 Last change: 2026 June 18
33

44
==============================================================================
55
Table of Contents *render-markdown-table-of-contents*

justfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ bench:
2525

2626
[private]
2727
busted path:
28-
nvim --headless --noplugin -u {{init}} -c "PlenaryBustedDirectory {{path}} {{settings}}"
28+
# needed to isolate child processes from user config
29+
# as plenary does not pass the --clean flag
30+
XDG_CONFIG_HOME="{{justfile_directory()}}/config" \
31+
nvim --headless --noplugin -u {{init}} \
32+
-c "PlenaryBustedDirectory {{path}} {{settings}}"
2933

3034
health:
3135
nvim -c "checkhealth render-markdown" -- -

0 commit comments

Comments
 (0)