We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a413c7 commit e565140Copy full SHA for e565140
1 file changed
tests/test-utils.ts
@@ -44,6 +44,11 @@ export interface TestHarness {
44
/**
45
* Create a fresh test harness. Every test that needs isolation calls this.
46
*
47
+ * IMPORTANT: Do not call createTestHarness() twice without an intervening
48
+ * teardown(). The second call captures the first's state, and teardown of the
49
+ * second restores stale singletons. Use beforeEach/afterEach to guarantee a
50
+ * single active harness per test.
51
+ *
52
* CRITICAL: ESM static imports resolve before any module body runs. This means
53
* spawn/renderer.ts registers the production frame scheduler at import time,
54
* and createTestHarness() (called in beforeEach) always wins because tests
0 commit comments