Skip to content

Commit

Permalink
Point the renderHook to the new dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
renatho committed Oct 31, 2024
1 parent 6b09ac8 commit 31bc767
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import useAbortController from '.';
/**
* External dependencies
*/
import { cleanup, renderHook } from '@testing-library/react-hooks';
import { cleanup, renderHook } from '@testing-library/react';

describe( 'useAbortController', () => {
it( 'Should return signal to be used on async operations', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { renderHook } from '@testing-library/react-hooks';
import { renderHook } from '@testing-library/react';
/**
* Internal dependencies
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { renderHook } from '@testing-library/react-hooks';
import { renderHook } from '@testing-library/react';
import { when } from 'jest-when';
/**
* WordPress dependencies
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { renderHook } from '@testing-library/react-hooks';
import { renderHook } from '@testing-library/react';
/**
* Internal dependencies
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { renderHook, act } from '@testing-library/react-hooks';
import { renderHook, act } from '@testing-library/react';

/**
* Internal dependencies
Expand Down
2 changes: 1 addition & 1 deletion assets/react-hooks/use-merge-reducer.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { act, renderHook } from '@testing-library/react-hooks';
import { act, renderHook } from '@testing-library/react';

/**
* Internal dependencies
Expand Down

0 comments on commit 31bc767

Please sign in to comment.