File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
2- import { act } from 'react-dom/test-utils' ;
32import { render } from '@testing-library/react' ;
43import '@testing-library/jest-dom' ;
54import 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
You can’t perform that action at this time.
0 commit comments