Skip to content

Commit c698fca

Browse files
committed
🤖 fix: isolate test instance userData when MUX_USER_DATA_DIR set
1 parent 63ccedb commit c698fca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/node/services/testInstanceService.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ export class TestInstanceService {
136136
detached: true,
137137
stdio: "ignore",
138138
windowsHide: true,
139+
env: {
140+
...process.env,
141+
// Ensure test instances stay isolated even if the parent was launched with
142+
// MUX_USER_DATA_DIR (which would otherwise override per-root userData).
143+
MUX_USER_DATA_DIR: path.join(rootDir, "user-data"),
144+
},
139145
});
140146
child.unref();
141147

0 commit comments

Comments
 (0)