Skip to content

Commit

Permalink
[React18] Migrated test suites to accommodate changes to testing libr…
Browse files Browse the repository at this point in the history
…ary owned by obs-ai-assistant
  • Loading branch information
eokoneyo committed Nov 21, 2024
1 parent 51a84eb commit b066544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/
import type { DeeplyMockedKeys } from '@kbn/utility-types-jest';
import { act, renderHook, type RenderHookResult } from '@testing-library/react-hooks';
import { renderHook, act, type RenderHookResult } from '@testing-library/react';
import { BehaviorSubject, Subject } from 'rxjs';
import {
MessageRole,
Expand Down Expand Up @@ -57,7 +57,7 @@ jest.spyOn(useKibanaModule, 'useKibana').mockReturnValue({
},
} as any);

let hookResult: RenderHookResult<UseChatProps, UseChatResult>;
let hookResult: RenderHookResult<UseChatResult, UseChatProps>;

describe('useChat', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { renderHook, act } from '@testing-library/react-hooks';
import { renderHook, act } from '@testing-library/react';
import { useLocalStorage } from './use_local_storage';

describe('useLocalStorage', () => {
Expand Down

0 comments on commit b066544

Please sign in to comment.