Skip to content

Commit 2dc77ef

Browse files
committed
fix: act warning
1 parent 2e0b82e commit 2dc77ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/ParallaxProvider/index.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ describe('A <ParallaxProvider>', () => {
193193
expect(instance2).toBeInstanceOf(ParallaxController);
194194

195195
// unmount first instance
196-
root1.unmount();
196+
act(() => {
197+
root1.unmount();
198+
});
197199

198200
// this must still be defined
199201
expect(instance2).toBeInstanceOf(ParallaxController);

0 commit comments

Comments
 (0)