We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9d8bfe commit 33c73f7Copy full SHA for 33c73f7
__tests__/SignaturePad.test.tsx
@@ -1,5 +1,4 @@
1
import * as React from 'react';
2
-import { act } from 'react-dom/test-utils';
3
import { render } from '@testing-library/react';
4
import '@testing-library/jest-dom';
5
import SigPad from 'signature_pad';
@@ -204,7 +203,7 @@ describe('Component', () => {
204
203
const spy = jest.spyOn(signaturePad.instance, 'clear');
205
206
scaleCanvas(768, 768);
207
- act(() => {
+ React.act(() => {
208
signaturePad.handleResize();
209
});
210
@@ -223,7 +222,7 @@ describe('Component', () => {
223
222
const spy = jest.spyOn(signaturePad.instance, 'toDataURL');
224
225
226
227
228
229
0 commit comments