Commit 65c38fe
committed
Fix stale require cache in TTY allocation tests
Add beforeEach hook to clear require cache before each test runs.
This ensures each test gets a fresh module evaluation with the
correct TTY values, preventing the first test from using a stale
cached module loaded by compose.spec.js.1 parent 5beb912 commit 65c38fe
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
0 commit comments