Skip to content

Commit c025226

Browse files
committed
test: Make sure we cleanup after ourselves
1 parent 8dec5e7 commit c025226

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/ContactUs.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { act } from 'react';
77
import { afterEach, describe, expect, it } from 'vitest';
88
import { ContactUs } from './ContactUs';
99

10-
afterEach(() => cleanup);
10+
afterEach(() => cleanup());
1111

1212
describe(ContactUs, () => {
1313
it('should render a Discord link', async () => {

src/features/instance/applications/components/Chat/components/MessageBubble.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { act } from 'react';
88
import { afterEach, describe, expect, it } from 'vitest';
99
import { MessageBubble } from './MessageBubble';
1010

11-
afterEach(() => cleanup);
11+
afterEach(() => cleanup());
1212

1313
describe('MessageBubble', () => {
1414
it('should render without crashing when parts is undefined', async () => {

src/features/organizations/components/OrgCard.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { OrgCard } from './OrgCard';
1111
// import * as matchers from '@testing-library/jest-dom/matchers';
1212
// expect.extend(matchers);
1313

14-
afterEach(() => cleanup);
14+
afterEach(() => cleanup());
1515

1616
describe('Org Card', () => {
1717
it('should render', async () => {

0 commit comments

Comments
 (0)