@samitouri / QOS-React-2 / commits / 269969b645

Updated snapshot data after ReactDOM batch fix

Brian Vaughn committed May 5, 2019 at 09:52 UTC 269969b64564637dd2a0933b426d63059e9e3652
2 files changed +9 -12
src/__tests__/__snapshots__/profiling-test.js.snap
+7 -7
@@ -111,22 +111,22 @@ Object {
111 exports[`profiling Interactions should be collected for every traced interaction: Interactions 1`] = `
112 Array [
113 Object {
114 - "__count": 0,
114 + "__count": 1,
115 "commits": Array [
116 - 1,
116 + 0,
117 ],
118 "id": 0,
119 - "name": "one child",
120 - "timestamp": 10,
119 + "name": "mount: one child",
120 + "timestamp": 0,
121 },
122 Object {
123 "__count": 0,
124 "commits": Array [
125 - 2,
125 + 1,
126 ],
127 "id": 1,
128 - "name": "two children",
129 - "timestamp": 22,
128 + "name": "update: two children",
129 + "timestamp": 12,
130 },
131 ]
132 `;
src/__tests__/profiling-test.js
+2 -5
@@ -194,23 +194,20 @@ describe('profiling', () => {
194 const container = document.createElement('div');
195
196 utils.act(() => store.startProfiling());
197 - console.log('[test] render one');
197 utils.act(() =>
198 SchedulerTracing.unstable_trace(
200 - 'one child',
199 + 'mount: one child',
200 Scheduler.unstable_now(),
201 () => ReactDOM.render(<Parent count={1} />, container)
202 )
203 );
205 - console.log('[test] render two');
204 utils.act(() =>
205 SchedulerTracing.unstable_trace(
208 - 'two children',
206 + 'update: two children',
207 Scheduler.unstable_now(),
208 () => ReactDOM.render(<Parent count={2} />, container)
209 )
210 );
213 - console.log('[test] done');
211 utils.act(() => store.stopProfiling());
212
213 function Suspender({ rendererID, rootID }) {