mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Added Tests, Fixed Small Issue, Removed More Caching, and General Code Fixes
This commit is contained in:
parent
9e45249377
commit
dbbfc7a9d8
8 changed files with 116 additions and 28 deletions
|
@ -1 +1,25 @@
|
|||
import '@testing-library/jest-dom';
|
||||
import { toast } from 'sonner';
|
||||
|
||||
jest.mock('sonner', () => ({
|
||||
toast: {
|
||||
success: jest.fn(),
|
||||
error: jest.fn(),
|
||||
},
|
||||
}));
|
||||
|
||||
jest.mock('@/actions/update-list', () => ({
|
||||
updateList: jest.fn(),
|
||||
}));
|
||||
|
||||
jest.mock('@/actions/delete-list', () => ({
|
||||
deleteList: jest.fn(),
|
||||
}));
|
||||
|
||||
jest.mock('@/actions/copy-list', () => ({
|
||||
copyList: jest.fn(),
|
||||
}));
|
||||
|
||||
jest.mock('@/actions/update-board', () => ({
|
||||
updateBoard: jest.fn(),
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue