(nextState: FixtureState)
| 144 | const benchmarkRoot = createRoot(rootNode) |
| 145 | |
| 146 | function renderFixture(nextState: FixtureState) { |
| 147 | return new Promise<void>((resolve) => { |
| 148 | flushSync(() => { |
| 149 | benchmarkRoot.render(<BenchmarkFixture {...nextState} />) |
| 150 | }) |
| 151 | resolve() |
| 152 | }) |
| 153 | } |
| 154 | |
| 155 | function unmountFixture() { |
| 156 | return new Promise<void>((resolve) => { |
no test coverage detected