Started Adding Jest and Tests

This commit is contained in:
Ahmad 2024-12-28 17:36:50 -05:00
parent 542405be98
commit 64c366998e
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
9 changed files with 3047 additions and 59 deletions

11
jest.setup.ts Normal file
View file

@ -0,0 +1,11 @@
import '@testing-library/jest-dom';
jest.mock('@clerk/nextjs/server', () => {
return {
auth: jest.fn().mockImplementation(() => {
return {
run: () => Promise.resolve({ id: '' }),
};
}),
};
});