Commit 2c6f8cb
committed
fix: delete XDG_CONFIG_HOME when test env opts out of setting it
When setupTestEnv({ setXdgConfig: false }) is called, explicitly delete
XDG_CONFIG_HOME so getConfigDir() falls back to $HOME/.config. Without
this, a pre-existing XDG_CONFIG_HOME (e.g. from CI) causes diagram-service
tests to look in a different directory than where test diagrams are created.1 parent d56c989 commit 2c6f8cb
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments