Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump @testing-library/jest-dom from 5.16.5 to 6.4.8 #1710

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/entry-app-collapsible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@contentful/app-scripts": "^0.9.17-alpha.16",
"@contentful/browserslist-config": "^3.0.0",
"@contentful/field-editor-test-utils": "^0.14.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^13.1.9",
"@types/jest": "^26.0.23",
Expand Down
2 changes: 1 addition & 1 deletion apps/markdown-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"devDependencies": {
"@contentful/browserslist-config": "^3.0.0",
"@contentful/field-editor-test-utils": "^0.14.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^13.1.9",
"@types/jest": "^26.0.23",
Expand Down
2 changes: 1 addition & 1 deletion apps/multiple-references-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"devDependencies": {
"@contentful/browserslist-config": "^3.0.0",
"@contentful/field-editor-test-utils": "^0.14.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^13.1.9",
"@types/jest": "^26.0.23",
Expand Down
2 changes: 1 addition & 1 deletion apps/rich-text-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@contentful/app-scripts": "^0.15.8",
"@contentful/browserslist-config": "^3.0.0",
"@contentful/field-editor-test-utils": "^0.14.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^13.1.9",
"@types/jest": "^26.0.23",
Expand Down
2 changes: 1 addition & 1 deletion apps/singleline-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@contentful/app-scripts": "^0.15.8",
"@contentful/browserslist-config": "^3.0.0",
"@contentful/field-editor-test-utils": "^0.14.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^13.1.9",
"@types/jest": "^26.0.23",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
"@swc/cli": "0.1.62",
"@swc/core": "1.7.3",
"@swc/jest": "0.2.29",
"@testing-library/cypress": "10.0.1",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "12.1.5",
"@types/jest": "29.5.1",
"@testing-library/cypress": "10.0.2",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "16.0.0",
"@types/jest": "29.5.12",
"@types/lodash": "4.14.202",
"@types/react": "17.0.0",
"@types/react-dom": "17.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/boolean/src/Boolean.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { createFakeFieldAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { cleanup, configure, fireEvent, render } from '@testing-library/react';

import { BooleanEditor } from './BooleanEditor';
Expand Down
2 changes: 1 addition & 1 deletion packages/checkbox/src/CheckboxEditor.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { createFakeFieldAPI, createFakeLocalesAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { cleanup, configure, fireEvent, render } from '@testing-library/react';

import { CheckboxEditor } from './CheckboxEditor';
Expand Down
2 changes: 1 addition & 1 deletion packages/default-field-editors/src/Field.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import { SingleEntryReferenceEditor } from '@contentful/field-editor-reference';
import type { FieldAppSDK } from '@contentful/field-editor-shared';
import { createFakeFieldAPI, createFakeLocalesAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { cleanup, configure, render } from '@testing-library/react';

import { Field } from './Field';
Expand Down
2 changes: 1 addition & 1 deletion packages/default-field-editors/src/FieldWrapper.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';

import type { FieldAppSDK } from '@contentful/field-editor-shared';
import { createFakeFieldAPI, createFakeLocalesAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { act, cleanup, configure, render } from '@testing-library/react';

import { FieldWrapper } from './FieldWrapper';
Expand Down
2 changes: 1 addition & 1 deletion packages/dropdown/src/DropdownEditor.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { createFakeFieldAPI, createFakeLocalesAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { cleanup, configure, fireEvent, render } from '@testing-library/react';

import { DropdownEditor } from './DropdownEditor';
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/ListEditor.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { createFakeFieldAPI, createFakeLocalesAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { RenderResult, cleanup, configure, fireEvent, render } from '@testing-library/react';

import { ListEditor } from './ListEditor';
Expand Down
2 changes: 1 addition & 1 deletion packages/multiple-line/src/MultipleLineEditor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import { createFakeFieldAPI, createFakeLocalesAPI } from '@contentful/field-editor-test-utils';
import { cleanup, configure, fireEvent, render, waitFor } from '@testing-library/react';

import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { MultipleLineEditor } from './MultipleLineEditor';

configure({
Expand Down
2 changes: 1 addition & 1 deletion packages/number/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@contentful/field-editor-test-utils": "^1.5.0",
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^13.1.9"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/number/src/NumberEditor.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { createFakeFieldAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { cleanup, configure, render, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

Expand Down
2 changes: 1 addition & 1 deletion packages/radio/src/RadioEditor.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { createFakeFieldAPI, createFakeLocalesAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { cleanup, configure, fireEvent, render } from '@testing-library/react';

import { RadioEditor } from './RadioEditor';
Expand Down
2 changes: 1 addition & 1 deletion packages/rating/src/RatingEditor.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { createFakeFieldAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { cleanup, configure, fireEvent, render } from '@testing-library/react';

import { RatingEditor } from './RatingEditor';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { Button } from '@contentful/f36-components';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { act, configure, fireEvent, render } from '@testing-library/react';
import noop from 'lodash/noop';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { FieldAppSDK } from '@contentful/app-sdk';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { fireEvent, render, screen } from '@testing-library/react';

import { useResource } from '../common/EntityStore';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { FieldAppSDK } from '@contentful/app-sdk';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { fireEvent, render, screen } from '@testing-library/react';

import { useResource } from '../common/EntityStore';
Expand Down
8 changes: 4 additions & 4 deletions packages/rich-text/src/Toolbar/_tests_/toolbar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MARKS } from '@contentful/rich-text-types';
import { configure, render, waitFor } from '@testing-library/react';
import { Plate } from '@udecode/plate-common';

import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { ContentfulEditorIdProvider, getContentfulEditorId } from '../../ContentfulEditorProvider';
import { SdkProvider } from '../../SdkProvider';
import Toolbar from '../index';
Expand Down Expand Up @@ -48,7 +48,7 @@ describe('Toolbar', () => {
<Toolbar isDisabled />
</ContentfulEditorIdProvider>
</SdkProvider>
</Plate>,
</Plate>
);
await waitFor(() => {
expect(getByTestId('toolbar-heading-toggle')).toBeDisabled();
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('Toolbar', () => {
<Toolbar isDisabled />
</ContentfulEditorIdProvider>
</SdkProvider>
</Plate>,
</Plate>
);
expect(queryByTestId('dropdown-toolbar-button')).toBeVisible();
});
Expand All @@ -94,7 +94,7 @@ describe('Toolbar', () => {
<Toolbar isDisabled />
</ContentfulEditorIdProvider>
</SdkProvider>
</Plate>,
</Plate>
);
expect(queryByTestId('dropdown-toolbar-button')).not.toBeInTheDocument();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';

import { EntityProvider } from '@contentful/field-editor-reference';
import { createFakeCMAAdapter } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { configure, fireEvent, render, waitFor } from '@testing-library/react';

import publishedAsset from '../__fixtures__/published_asset.json';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';

import { EntityProvider } from '@contentful/field-editor-reference';
import { createFakeCMAAdapter } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { configure, fireEvent, render, waitFor } from '@testing-library/react';

import publishedCT from '../__fixtures__/published_content_type.json';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { EntityProvider } from '@contentful/field-editor-reference';
import { createFakeCMAAdapter } from '@contentful/field-editor-test-utils';
import { configure, render, waitFor } from '@testing-library/react';
Expand Down
2 changes: 1 addition & 1 deletion packages/single-line/src/SingleLineEditor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import { createFakeFieldAPI, createFakeLocalesAPI } from '@contentful/field-editor-test-utils';
import { cleanup, configure, fireEvent, render, waitFor } from '@testing-library/react';

import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { SingleLineEditor } from './SingleLineEditor';

configure({
Expand Down
2 changes: 1 addition & 1 deletion packages/slug/src/SlugEditor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import { createFakeFieldAPI, createFakeLocalesAPI } from '@contentful/field-editor-test-utils';
import { cleanup, configure, fireEvent, render, waitFor } from '@testing-library/react';

import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { SlugEditor } from './SlugEditor';

configure({
Expand Down
2 changes: 1 addition & 1 deletion packages/tags/src/TagsEditorContainer.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { createFakeFieldAPI } from '@contentful/field-editor-test-utils';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { RenderResult, cleanup, configure, fireEvent, render } from '@testing-library/react';

import { TagsEditorContainer } from './TagsEditorContainer';
Expand Down
2 changes: 1 addition & 1 deletion packages/url/src/UrlEditor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import { createFakeFieldAPI } from '@contentful/field-editor-test-utils';
import { cleanup, configure, fireEvent, render, waitFor } from '@testing-library/react';

import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { UrlEditor } from './UrlEditor';

configure({
Expand Down
3 changes: 1 addition & 2 deletions packages/validation-errors/src/ValidationErrors.test.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* eslint-disable jest/expect-expect */
import * as React from 'react';

import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { ValidationError } from '@contentful/app-sdk';
import type { ContentType } from '@contentful/field-editor-shared';
import * as utils from '@contentful/field-editor-test-utils';
import { render, configure, cleanup, act } from '@testing-library/react';


import { ValidationErrors } from './ValidationErrors';

configure({
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"jsx": "react",
"esModuleInterop": true
"esModuleInterop": true,
"types": ["@testing-library/jest-dom"]
}
}
Loading