Skip to content

Commit 7d34c79

Browse files
committed
Merge branch 'develop'
2 parents b1ee5ab + 4c14c4f commit 7d34c79

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
os: [ubuntu-latest, macos-latest, windows-latest]
10-
node-version: [17.x, 18.x, 19.x]
10+
node-version: [20.x, 21.x, 22.x]
1111
steps:
1212
- name: Check out repository code
1313
uses: actions/checkout@v3

__tests__/SignaturePad.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as React from 'react';
2-
import { act } from 'react-dom/test-utils';
32
import { render } from '@testing-library/react';
43
import '@testing-library/jest-dom';
54
import SigPad from 'signature_pad';
@@ -204,7 +203,7 @@ describe('Component', () => {
204203
const spy = jest.spyOn(signaturePad.instance, 'clear');
205204

206205
scaleCanvas(768, 768);
207-
act(() => {
206+
React.act(() => {
208207
signaturePad.handleResize();
209208
});
210209

@@ -223,7 +222,7 @@ describe('Component', () => {
223222
const spy = jest.spyOn(signaturePad.instance, 'toDataURL');
224223

225224
scaleCanvas(768, 768);
226-
act(() => {
225+
React.act(() => {
227226
signaturePad.handleResize();
228227
});
229228

0 commit comments

Comments
 (0)