Commit c91560e
authored
🤖 refactor: rename CMUX_TEST_ROOT to CMUX_ROOT (#576)
Renames `CMUX_TEST_ROOT` to `CMUX_ROOT` for clearer intent. This
environment variable overrides the default cmux data directory and is
useful beyond just testing scenarios (e.g., when developers want to run
with a clean slate or isolate different development environments).
## Changes
- `CMUX_TEST_ROOT` → `CMUX_ROOT` in all references (`paths.ts`,
`main-desktop.ts`, `electronTest.ts`)
- Updated comments to match the new name
## Behavior
No behavior changes - this is purely a rename:
- `make start` still uses `~/.cmux-dev` (via `NODE_ENV=development`,
behavior from #573)
- Packaged apps still use `~/.cmux`
- `CMUX_ROOT=/custom/path` still overrides everything
The rename clarifies that this variable isn't just for tests -
developers can use it anytime they want explicit control over the data
directory.
_Generated with `cmux`_1 parent 43bce08 commit c91560e
File tree
3 files changed
+6
-6
lines changed- src
- constants
- tests/e2e
3 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments