diff --git a/apps/meteor/client/components/GenericMenu/GenericMenu.spec.tsx b/apps/meteor/client/components/GenericMenu/GenericMenu.spec.tsx
index 530bd1404dc7c..355537af71bc6 100644
--- a/apps/meteor/client/components/GenericMenu/GenericMenu.spec.tsx
+++ b/apps/meteor/client/components/GenericMenu/GenericMenu.spec.tsx
@@ -1,3 +1,4 @@
+import { mockAppRoot } from '@rocket.chat/mock-providers';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import React from 'react';
@@ -31,7 +32,7 @@ const sections = [regular, danger];
describe('Room Actions Menu', () => {
it('should render kebab menu with the list content', async () => {
- render(, { legacyRoot: true });
+ render(, { legacyRoot: true, wrapper: mockAppRoot().build() });
await userEvent.click(screen.getByRole('button'));
@@ -40,7 +41,7 @@ describe('Room Actions Menu', () => {
});
it('should have two different sections, regular and danger', async () => {
- render(, { legacyRoot: true });
+ render(, { legacyRoot: true, wrapper: mockAppRoot().build() });
await userEvent.click(screen.getByRole('button'));
@@ -49,7 +50,7 @@ describe('Room Actions Menu', () => {
});
it('should call the action when item clicked', async () => {
- render(, { legacyRoot: true });
+ render(, { legacyRoot: true, wrapper: mockAppRoot().build() });
await userEvent.click(screen.getByRole('button'));
await userEvent.click(screen.getAllByRole('menuitem')[0]);
diff --git a/apps/meteor/client/views/admin/settings/Setting/inputs/TimespanSettingInput.spec.tsx b/apps/meteor/client/views/admin/settings/Setting/inputs/TimespanSettingInput.spec.tsx
index 975a3171cbbf6..7c57e4c49f4ed 100644
--- a/apps/meteor/client/views/admin/settings/Setting/inputs/TimespanSettingInput.spec.tsx
+++ b/apps/meteor/client/views/admin/settings/Setting/inputs/TimespanSettingInput.spec.tsx
@@ -1,3 +1,4 @@
+import { mockAppRoot } from '@rocket.chat/mock-providers';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import React from 'react';
@@ -52,7 +53,7 @@ describe('TimespanSettingInput component', () => {
placeholder='Enter timespan'
onChangeValue={onChangeValueMock}
/>,
- { legacyRoot: true },
+ { legacyRoot: true, wrapper: mockAppRoot().build() },
);
const numberInput = screen.getByRole('spinbutton');
@@ -74,7 +75,7 @@ describe('TimespanSettingInput component', () => {
placeholder='Enter timespan'
onChangeValue={onChangeValueMock}
/>,
- { legacyRoot: true },
+ { legacyRoot: true, wrapper: mockAppRoot().build() },
);
const selectInput = screen.getByRole('button', { name: 'hours' });
@@ -99,7 +100,7 @@ describe('TimespanSettingInput component', () => {
placeholder='Enter timespan'
onChangeValue={onChangeValueMock}
/>,
- { legacyRoot: true },
+ { legacyRoot: true, wrapper: mockAppRoot().build() },
);
const selectInput = screen.getByRole('button', { name: 'days' });
@@ -124,7 +125,7 @@ describe('TimespanSettingInput component', () => {
placeholder='Enter timespan'
onChangeValue={onChangeValueMock}
/>,
- { legacyRoot: true },
+ { legacyRoot: true, wrapper: mockAppRoot().build() },
);
const selectInput = screen.getByRole('button', { name: 'hours' });
@@ -150,7 +151,7 @@ describe('TimespanSettingInput component', () => {
hasResetButton
onResetButtonClick={onResetButtonClickMock}
/>,
- { legacyRoot: true },
+ { legacyRoot: true, wrapper: mockAppRoot().build() },
);
const resetButton = screen.getByTitle('Reset');
diff --git a/packages/i18n/jest.config.ts b/packages/i18n/jest.config.ts
index eb3d5fd797e5c..652cb006f406a 100644
--- a/packages/i18n/jest.config.ts
+++ b/packages/i18n/jest.config.ts
@@ -4,6 +4,6 @@ import type { Config } from 'jest';
export default {
preset: server.preset,
testMatch: ['/src/**/*.spec.(ts|js|mjs)'],
- transformIgnorePatterns: ['/node_modules/@babel', '/node_modules/@jest', 'signal-exit'],
+ transformIgnorePatterns: ['/node_modules/@babel', '/node_modules/@jest', 'signal-exit', 'is-typedarray'],
collectCoverage: false,
} satisfies Config;
diff --git a/packages/jest-presets/package.json b/packages/jest-presets/package.json
index 5fb2e26389a0a..078d19289d344 100644
--- a/packages/jest-presets/package.json
+++ b/packages/jest-presets/package.json
@@ -13,7 +13,7 @@
"/server"
],
"dependencies": {
- "@swc/core": "~1.7.4",
+ "@swc/core": "~1.7.23",
"@swc/jest": "~0.2.36",
"@testing-library/jest-dom": "~6.4.8",
"@types/jest-axe": "~3.5.9",
diff --git a/yarn.lock b/yarn.lock
index 58d297d5b7650..277b03a495d4a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -9078,7 +9078,7 @@ __metadata:
resolution: "@rocket.chat/jest-presets@workspace:packages/jest-presets"
dependencies:
"@rocket.chat/eslint-config": "workspace:~"
- "@swc/core": ~1.7.4
+ "@swc/core": ~1.7.23
"@swc/jest": ~0.2.36
"@testing-library/jest-dom": ~6.4.8
"@types/identity-obj-proxy": ^3
@@ -12417,90 +12417,90 @@ __metadata:
languageName: node
linkType: hard
-"@swc/core-darwin-arm64@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-darwin-arm64@npm:1.7.4"
+"@swc/core-darwin-arm64@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-darwin-arm64@npm:1.7.23"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
-"@swc/core-darwin-x64@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-darwin-x64@npm:1.7.4"
+"@swc/core-darwin-x64@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-darwin-x64@npm:1.7.23"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
-"@swc/core-linux-arm-gnueabihf@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-linux-arm-gnueabihf@npm:1.7.4"
+"@swc/core-linux-arm-gnueabihf@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-linux-arm-gnueabihf@npm:1.7.23"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
-"@swc/core-linux-arm64-gnu@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-linux-arm64-gnu@npm:1.7.4"
+"@swc/core-linux-arm64-gnu@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-linux-arm64-gnu@npm:1.7.23"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
-"@swc/core-linux-arm64-musl@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-linux-arm64-musl@npm:1.7.4"
+"@swc/core-linux-arm64-musl@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-linux-arm64-musl@npm:1.7.23"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
-"@swc/core-linux-x64-gnu@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-linux-x64-gnu@npm:1.7.4"
+"@swc/core-linux-x64-gnu@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-linux-x64-gnu@npm:1.7.23"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
-"@swc/core-linux-x64-musl@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-linux-x64-musl@npm:1.7.4"
+"@swc/core-linux-x64-musl@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-linux-x64-musl@npm:1.7.23"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
-"@swc/core-win32-arm64-msvc@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-win32-arm64-msvc@npm:1.7.4"
+"@swc/core-win32-arm64-msvc@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-win32-arm64-msvc@npm:1.7.23"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
-"@swc/core-win32-ia32-msvc@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-win32-ia32-msvc@npm:1.7.4"
+"@swc/core-win32-ia32-msvc@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-win32-ia32-msvc@npm:1.7.23"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
-"@swc/core-win32-x64-msvc@npm:1.7.4":
- version: 1.7.4
- resolution: "@swc/core-win32-x64-msvc@npm:1.7.4"
+"@swc/core-win32-x64-msvc@npm:1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core-win32-x64-msvc@npm:1.7.23"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
-"@swc/core@npm:~1.7.4":
- version: 1.7.4
- resolution: "@swc/core@npm:1.7.4"
- dependencies:
- "@swc/core-darwin-arm64": 1.7.4
- "@swc/core-darwin-x64": 1.7.4
- "@swc/core-linux-arm-gnueabihf": 1.7.4
- "@swc/core-linux-arm64-gnu": 1.7.4
- "@swc/core-linux-arm64-musl": 1.7.4
- "@swc/core-linux-x64-gnu": 1.7.4
- "@swc/core-linux-x64-musl": 1.7.4
- "@swc/core-win32-arm64-msvc": 1.7.4
- "@swc/core-win32-ia32-msvc": 1.7.4
- "@swc/core-win32-x64-msvc": 1.7.4
+"@swc/core@npm:~1.7.23":
+ version: 1.7.23
+ resolution: "@swc/core@npm:1.7.23"
+ dependencies:
+ "@swc/core-darwin-arm64": 1.7.23
+ "@swc/core-darwin-x64": 1.7.23
+ "@swc/core-linux-arm-gnueabihf": 1.7.23
+ "@swc/core-linux-arm64-gnu": 1.7.23
+ "@swc/core-linux-arm64-musl": 1.7.23
+ "@swc/core-linux-x64-gnu": 1.7.23
+ "@swc/core-linux-x64-musl": 1.7.23
+ "@swc/core-win32-arm64-msvc": 1.7.23
+ "@swc/core-win32-ia32-msvc": 1.7.23
+ "@swc/core-win32-x64-msvc": 1.7.23
"@swc/counter": ^0.1.3
"@swc/types": ^0.1.12
peerDependencies:
@@ -12529,7 +12529,7 @@ __metadata:
peerDependenciesMeta:
"@swc/helpers":
optional: true
- checksum: 1b2231fcb6a2a63171e34e80f0d43cd459d259b0a2fa269a129456291dc11b95a716aed60f61e5fcafd039a217916ece375876b02d125d88cdc7927382805e55
+ checksum: a21e9a67d305ad9b49b6def9f9698b374db6c15b2ded5e5cf29390221181fc6b91bfa317b53fd41d9cca989d85b79bbbca5ab27635df1e0232cad4681f618fa5
languageName: node
linkType: hard