Skip to content

Commit

Permalink
fix: stop act warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
localnerve committed Sep 16, 2023
1 parent 38ba03e commit 90d7664
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tests/unit/index.js
Expand Up @@ -13,7 +13,6 @@ import { Simple, setMockReporter } from '../fixtures/Simple.jsx';
import createSizeReporter from '../../lib/index.js';

describe('sizeReporter', () => {
let testUtils;

before('sizeReporter', () => {
domStart();
Expand Down Expand Up @@ -130,7 +129,7 @@ describe('sizeReporter', () => {
ReactDOM.createRoot(container).render(element);
});

return result;
return act(() => result);
});
});

Expand Down

0 comments on commit 90d7664

Please sign in to comment.