Skip to content

Commit ac66477

Browse files
committed
remove jest config
1 parent 434f167 commit ac66477

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.spec.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { render, screen } from '@testing-library/react';
22
import React from 'react';
3+
import '@testing-library/jest-dom/extend-expect';
34

45
import { createRenteionPolicySettingsMock as createMock } from '../../../tests/mocks/client/mockRetentionPolicySettings';
56
import { createFakeRoom } from '../../../tests/mocks/data';
@@ -16,7 +17,7 @@ describe('RetentionPolicyCallout', () => {
1617
expect(screen.getByRole('alert')).toHaveTextContent('a minute June 1, 2024, 12:30 AM');
1718
});
1819

19-
it('Should not render callout if settings are valid', () => {
20+
it('Should not render callout if settings are invalid', () => {
2021
setDate();
2122
const fakeRoom = createFakeRoom({ t: 'c' });
2223
render(<RetentionPolicyCallout room={fakeRoom} />, {

apps/meteor/client/views/room/body/RetentionPolicyWarning.spec.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { render, screen } from '@testing-library/react';
22
import React from 'react';
3+
import '@testing-library/jest-dom/extend-expect';
34

45
import { createRenteionPolicySettingsMock as createMock } from '../../../../tests/mocks/client/mockRetentionPolicySettings';
56
import { createFakeRoom } from '../../../../tests/mocks/data';
@@ -16,7 +17,7 @@ describe('RetentionPolicyWarning', () => {
1617
expect(screen.getByRole('alert')).toHaveTextContent('a minute June 1, 2024, 12:30 AM');
1718
});
1819

19-
it('Should not render callout if settings are valid', () => {
20+
it('Should not render callout if settings are invalid', () => {
2021
setDate();
2122
const fakeRoom = createFakeRoom({ t: 'c' });
2223
render(<RetentionPolicyWarning room={fakeRoom} />, {

apps/meteor/jest.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const config: Config = {
2424
'^@tanstack/(.+)': '<rootDir>/node_modules/@tanstack/$1',
2525
'^meteor/(.*)': '<rootDir>/.meteorMocks/index.ts',
2626
},
27-
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
2827
},
2928
{
3029
displayName: 'server',

0 commit comments

Comments
 (0)