mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Update config, ButtonIcon, remove cloneElement
This commit is contained in:
@@ -8,13 +8,13 @@ import {
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
// Types
|
||||
import { IRoom } from '@type/room';
|
||||
import { IRoom } from '@src/types/room';
|
||||
|
||||
// Constants
|
||||
import { DELETE_SUCCESS } from '@constant/messages';
|
||||
import { DELETE_SUCCESS } from '@src/constants/messages';
|
||||
|
||||
// Services
|
||||
import { setIsDeleteRoom } from '@service/roomServices';
|
||||
import { setIsDeleteRoom } from '@src/services/roomServices';
|
||||
|
||||
// Hooks
|
||||
import { useSetIsDeleteRoom } from '../useSetIsDeleteRoom';
|
||||
@@ -24,7 +24,7 @@ jest.mock('@tanstack/react-query', () => ({
|
||||
...jest.requireActual('@tanstack/react-query'),
|
||||
useQueryClient: jest.fn(),
|
||||
}));
|
||||
jest.mock('@service/roomServices', () => ({
|
||||
jest.mock('@src/services/roomServices', () => ({
|
||||
setIsDeleteRoom: jest.fn(),
|
||||
}));
|
||||
jest.mock('react-hot-toast');
|
||||
|
||||
Reference in New Issue
Block a user