Skip to content

Commit

Permalink
chore: bump jest and ts-jest
Browse files Browse the repository at this point in the history
  • Loading branch information
myandrienko committed Apr 3, 2024
1 parent 39706e0 commit 3f78526
Show file tree
Hide file tree
Showing 11 changed files with 715 additions and 363 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"eslint-plugin-typescript-sort-keys": "^2.1.0",
"husky": "^8.0.3",
"i18next-parser": "^6.0.0",
"jest": "^28.1.3",
"jest": "^29.7.0",
"jest-axe": "^8.0.0",
"jest-environment-jsdom": "^28.1.3",
"lint-staged": "^15.2.1",
Expand All @@ -207,7 +207,7 @@
"react-test-renderer": "^18.1.0",
"semantic-release": "^19.0.5",
"stream-chat": "^8.21.0",
"ts-jest": "^28.0.8",
"ts-jest": "^29.1.2",
"typescript": "^5.4.2"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Avatar/__tests__/Avatar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Avatar', () => {
onClick={[Function]}
onMouseOver={[Function]}
style={
Object {
{
"flexBasis": "32px",
"fontSize": "16px",
"height": "32px",
Expand All @@ -43,7 +43,7 @@ describe('Avatar', () => {
onClick={[Function]}
onMouseOver={[Function]}
style={
Object {
{
"flexBasis": "32px",
"fontSize": "16px",
"height": "32px",
Expand All @@ -60,7 +60,7 @@ describe('Avatar', () => {
onLoad={[Function]}
src="random"
style={
Object {
{
"flexBasis": "32px",
"height": "32px",
"objectFit": "cover",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`ChannelPreviewMessenger should render correctly 1`] = `
onClick={[Function]}
onMouseOver={[Function]}
style={
Object {
{
"flexBasis": "40px",
"fontSize": "20px",
"height": "40px",
Expand All @@ -39,7 +39,7 @@ exports[`ChannelPreviewMessenger should render correctly 1`] = `
onLoad={[Function]}
src="https://randomimage.com/src.jpg"
style={
Object {
{
"flexBasis": "40px",
"height": "40px",
"objectFit": "cover",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ exports[`Gallery should render component with 5 images 1`] = `
data-testid="gallery-image-last"
onClick={[Function]}
style={
Object {
{
"backgroundImage": "url(undefined)",
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/LoadMore/__tests__/LoadMorePaginator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('LoadMorePaginator', () => {
)
.toJSON();
expect(tree).toMatchInlineSnapshot(`
Array [
[
"children",
<div
data-testid="load-more-button"
Expand All @@ -51,7 +51,7 @@ describe('LoadMorePaginator', () => {
)
.toJSON();
expect(tree).toMatchInlineSnapshot(`
Array [
[
"children",
<div>
custom load more button
Expand All @@ -73,7 +73,7 @@ describe('LoadMorePaginator', () => {
)
.toJSON();
expect(tree).toMatchInlineSnapshot(`
Array [
[
"children",
<div>
load more button
Expand All @@ -96,7 +96,7 @@ describe('LoadMorePaginator', () => {
)
.toJSON();
expect(tree).toMatchInlineSnapshot(`
Array [
[
<div>
load more button
</div>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`LoadingIndicator should render with default props 1`] = `
className="str-chat__loading-indicator"
data-testid="loading-indicator-wrapper"
style={
Object {
{
"height": 15,
"width": 15,
}
Expand Down Expand Up @@ -36,7 +36,7 @@ exports[`LoadingIndicator should render with default props 1`] = `
stopColor="#006CFF"
stopOpacity="1"
style={
Object {
{
"stopColor": "#006CFF",
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`htmlToTextPlugin present keeps HTML in text 1`] = `
`;

exports[`keepLineBreaksPlugin absent does not keep line breaks around a blockquote 1`] = `
Array [
[
<p>
a
</p>,
Expand All @@ -33,7 +33,7 @@ Array [
`;

exports[`keepLineBreaksPlugin absent does not keep line breaks around a code block 1`] = `
Array [
[
<p>
a
</p>,
Expand All @@ -53,7 +53,7 @@ Array [
`;

exports[`keepLineBreaksPlugin absent does not keep line breaks around a horizontal rule 1`] = `
Array [
[
<p>
a
</p>,
Expand All @@ -68,7 +68,7 @@ Array [
`;

exports[`keepLineBreaksPlugin absent does not keep line breaks around a strikethrough 1`] = `
Array [
[
<p>
a
</p>,
Expand All @@ -86,7 +86,7 @@ Array [
`;

exports[`keepLineBreaksPlugin absent does not keep line breaks around a table 1`] = `
Array [
[
<p>
a
</p>,
Expand All @@ -106,7 +106,7 @@ Array [
`;

exports[`keepLineBreaksPlugin absent does not keep line breaks between paragraphs 1`] = `
Array [
[
<p>
a
</p>,
Expand Down Expand Up @@ -204,7 +204,7 @@ exports[`keepLineBreaksPlugin absent does not keep line breaks between the items
`;

exports[`keepLineBreaksPlugin absent does not keep line breaks under a heading 1`] = `
Array [
[
"Heading",
"
",
Expand All @@ -215,7 +215,7 @@ Array [
`;

exports[`keepLineBreaksPlugin present keeps line breaks around a blockquote 1`] = `
Array [
[
<p>
a
</p>,
Expand Down Expand Up @@ -267,7 +267,7 @@ Array [
`;

exports[`keepLineBreaksPlugin present keeps line breaks around a code block 1`] = `
Array [
[
<p>
a
</p>,
Expand Down Expand Up @@ -315,7 +315,7 @@ Array [
`;

exports[`keepLineBreaksPlugin present keeps line breaks around a horizontal rule 1`] = `
Array [
[
<p>
a
</p>,
Expand Down Expand Up @@ -358,7 +358,7 @@ Array [
`;

exports[`keepLineBreaksPlugin present keeps line breaks around a strikethrough 1`] = `
Array [
[
<p>
a
</p>,
Expand Down Expand Up @@ -404,7 +404,7 @@ Array [
`;

exports[`keepLineBreaksPlugin present keeps line breaks around a table 1`] = `
Array [
[
<p>
a
</p>,
Expand Down Expand Up @@ -452,7 +452,7 @@ Array [
`;

exports[`keepLineBreaksPlugin present keeps line breaks between paragraphs 1`] = `
Array [
[
<p>
a
</p>,
Expand Down Expand Up @@ -634,7 +634,7 @@ exports[`keepLineBreaksPlugin present keeps line breaks between the items in an
`;

exports[`keepLineBreaksPlugin present keeps line breaks under a heading 1`] = `
Array [
[
"Heading",
"
",
Expand Down Expand Up @@ -853,7 +853,7 @@ exports[`renderText renders custom mention 1`] = `
`;

exports[`renderText renders remark-gfm list and strikethrough correctly 1`] = `
Array [
[
<p>
Pick a time to meet:
</p>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('CustomMessageActionsList', () => {
);

expect(tree.toJSON()).toMatchInlineSnapshot(`
Array [
[
<button
aria-selected="false"
className="str-chat__message-actions-list-item str-chat__message-actions-list-item-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`VirtualizedMessageList should render the list without any message 1`] =
data-test-id="virtuoso-scroller"
data-virtuoso-scroller={true}
style={
Object {
{
"WebkitOverflowScrolling": "touch",
"height": "100%",
"outline": "none",
Expand All @@ -29,7 +29,7 @@ exports[`VirtualizedMessageList should render the list without any message 1`] =
<div
data-viewport-type="element"
style={
Object {
{
"height": "100%",
"position": "absolute",
"top": 0,
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserItem/__tests__/UserItem.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('UserItem', () => {
onClick={[Function]}
onMouseOver={[Function]}
style={
Object {
{
"flexBasis": "20px",
"fontSize": "10px",
"height": "20px",
Expand Down
Loading

0 comments on commit 3f78526

Please sign in to comment.