Skip to content

Commit

Permalink
GraphQL error scenarios to test cases Added 1
Browse files Browse the repository at this point in the history
  • Loading branch information
raggettii committed Dec 10, 2024
1 parent b806e2d commit 31a9950
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ const mocks = [
},
];

// Test cleanup hooks for isolation
beforeEach(() => {
jest.clearAllMocks(); // Clear all mocks before each test
});

afterEach(() => {
jest.resetModules(); // Reset modules to ensure no leftover state
});

describe('LeaveOrganization Component', () => {
test('renders organization details', async () => {
render(
Expand Down

0 comments on commit 31a9950

Please sign in to comment.