Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

test: migrate jest test from babel to swc (#74403)

Uladzimir Havenchykc3b66e89df9b
diff --git a/bun.lock b/bun.lock
index 872190a0f1b..232662fd18d 100644
--- a/bun.lock
+++ b/bun.lock
@@ -218,7 +218,9 @@
"@storybook/react-webpack5": "^8.5.0",
"@storybook/test": "^8.5.0",
"@svgr/webpack": "^8.1.0",
+ "@swc-contrib/mut-cjs-exports": "^14.9.0",
"@swc/core": "^1.15.33",
+ "@swc/jest": "0.2.39",
"@swc/plugin-emotion": "^14.9.0",
"@tanstack/table-core": "^8.21.3",
"@testing-library/cypress": "^10.1.0",
@@ -1051,6 +1053,8 @@
"@jest/core": ["@jest/[email protected]", "", { "dependencies": { "@jest/console": "30.2.0", "@jest/pattern": "30.0.1", "@jest/reporters": "30.2.0", "@jest/test-result": "30.2.0", "@jest/transform": "30.2.0", "@jest/types": "30.2.0", "@types/node": "*", "ansi-escapes": "^4.3.2", "chalk": "^4.1.2", "ci-info": "^4.2.0", "exit-x": "^0.2.2", "graceful-fs": "^4.2.11", "jest-changed-files": "30.2.0", "jest-config": "30.2.0", "jest-haste-map": "30.2.0", "jest-message-util": "30.2.0", "jest-regex-util": "30.0.1", "jest-resolve": "30.2.0", "jest-resolve-dependencies": "30.2.0", "jest-runner": "30.2.0", "jest-runtime": "30.2.0", "jest-snapshot": "30.2.0", "jest-util": "30.2.0", "jest-validate": "30.2.0", "jest-watcher": "30.2.0", "micromatch": "^4.0.8", "pretty-format": "30.2.0", "slash": "^3.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" }, "optionalPeers": ["node-notifier"] }, "sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ=="],
+ "@jest/create-cache-key-function": ["@jest/[email protected]", "", { "dependencies": { "@jest/types": "30.4.1" } }, "sha512-R+xGEtzA95NIsvpXJSROG4t01956dDOt17KpamguY4XOnGvdHNFFXE7Er0C1OAsRjOwiIxpKqOvGlznIGZIQlQ=="],
+
"@jest/diff-sequences": ["@jest/[email protected]", "", {}, "sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw=="],
"@jest/environment": ["@jest/[email protected]", "", { "dependencies": { "@jest/fake-timers": "30.2.0", "@jest/types": "30.2.0", "@types/node": "*", "jest-mock": "30.2.0" } }, "sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g=="],
@@ -1565,6 +1569,8 @@
"@svgr/webpack": ["@svgr/[email protected]", "", { "dependencies": { "@babel/core": "^7.21.3", "@babel/plugin-transform-react-constant-elements": "^7.21.3", "@babel/preset-env": "^7.20.2", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.21.0", "@svgr/core": "8.1.0", "@svgr/plugin-jsx": "8.1.0", "@svgr/plugin-svgo": "8.1.0" } }, "sha512-LnhVjMWyMQV9ZmeEy26maJk+8HTIbd59cH4F2MJ439k9DqejRisfFNGAPvRYlKETuh9LrImlS8aKsBgKjMA8WA=="],
+ "@swc-contrib/mut-cjs-exports": ["@swc-contrib/[email protected]", "", { "peerDependencies": { "@swc/core": "^1.10.0", "@swc/jest": "^0.2.37" } }, "sha512-sP6J8bj8ZkQHMLXATC8wKj52NN54dP4dR6350Cjcu7aq0PMs+4d4ahVYCzilAiDTClE0JaIh6p4UwfUNsgC7Bw=="],
+
"@swc/core": ["@swc/[email protected]", "", { "dependencies": { "@swc/counter": "^0.1.3", "@swc/types": "^0.1.26" }, "optionalDependencies": { "@swc/core-darwin-arm64": "1.15.33", "@swc/core-darwin-x64": "1.15.33", "@swc/core-linux-arm-gnueabihf": "1.15.33", "@swc/core-linux-arm64-gnu": "1.15.33", "@swc/core-linux-arm64-musl": "1.15.33", "@swc/core-linux-ppc64-gnu": "1.15.33", "@swc/core-linux-s390x-gnu": "1.15.33", "@swc/core-linux-x64-gnu": "1.15.33", "@swc/core-linux-x64-musl": "1.15.33", "@swc/core-win32-arm64-msvc": "1.15.33", "@swc/core-win32-ia32-msvc": "1.15.33", "@swc/core-win32-x64-msvc": "1.15.33" }, "peerDependencies": { "@swc/helpers": ">=0.5.17" }, "optionalPeers": ["@swc/helpers"] }, "sha512-jOlwnFV2xhuuZeAUILGFULeR6vDPfijEJ57evfocwznQldLU3w2cZ9bSDryY9ip+AsM3r1NJKzf47V2NXebkeQ=="],
"@swc/core-darwin-arm64": ["@swc/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-N+L0uXhuO7FIfzqwgxmzv0zIpV0qEp8wPX3QQs2p4atjMoywup2JTeDlXPw+z9pWJGCae3JjM+tZ6myclI+2gA=="],
@@ -1593,6 +1599,8 @@
"@swc/counter": ["@swc/[email protected]", "", {}, "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ=="],
+ "@swc/jest": ["@swc/[email protected]", "", { "dependencies": { "@jest/create-cache-key-function": "^30.0.0", "@swc/counter": "^0.1.3", "jsonc-parser": "^3.2.0" }, "peerDependencies": { "@swc/core": "*" } }, "sha512-eyokjOwYd0Q8RnMHri+8/FS1HIrIUKK/sRrFp8c1dThUOfNeCWbLmBP1P5VsKdvmkd25JaH+OKYwEYiAYg9YAA=="],
+
"@swc/plugin-emotion": ["@swc/[email protected]", "", { "dependencies": { "@swc/counter": "^0.1.3" } }, "sha512-h57mL/TsOrhimvHs6KQQLZO1T+D7FQyx+7WS17p9vV228qxmZatF0IgEXMyERWthm1QL7fAB6cEMBCtujSVbyw=="],
"@swc/types": ["@swc/[email protected]", "", { "dependencies": { "@swc/counter": "^0.1.3" } }, "sha512-lyMwd7WGgG79RS7EERZV3T8wMdmPq3xwyg+1nmAM64kIhx5yl+juO2PYIHb7vTiPgPCj8LYjsNV2T5wiQHUEaw=="],
@@ -3705,6 +3713,8 @@
"json5": ["[email protected]", "", { "bin": { "json5": "lib/cli.js" } }, "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="],
+ "jsonc-parser": ["[email protected]", "", {}, "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ=="],
+
"jsonfile": ["[email protected]", "", { "dependencies": { "universalify": "^2.0.0" }, "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ=="],
"jsonify": ["[email protected]", "", {}, "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg=="],
@@ -5605,6 +5615,8 @@
"@jest/core/slash": ["[email protected]", "", {}, "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q=="],
+ "@jest/create-cache-key-function/@jest/types": ["@jest/[email protected]", "", { "dependencies": { "@jest/pattern": "30.4.0", "@jest/schemas": "30.4.1", "@types/istanbul-lib-coverage": "^2.0.6", "@types/istanbul-reports": "^3.0.4", "@types/node": "*", "@types/yargs": "^17.0.33", "chalk": "^4.1.2" } }, "sha512-f1x/vJXIfjOlEmejYpbkbgw1gOqpPECwMvMEtBqe47j7H2Hg8h8w3o3ikhSXq3MI15kg+oQ0exWO0uCtTNJLoQ=="],
+
"@jest/fake-timers/@sinonjs/fake-timers": ["@sinonjs/[email protected]", "", { "dependencies": { "@sinonjs/commons": "^3.0.1" } }, "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw=="],
"@jest/reporters/@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ=="],
@@ -7161,6 +7173,10 @@
"@jest/core/pretty-format/react-is": ["[email protected]", "", {}, "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg=="],
+ "@jest/create-cache-key-function/@jest/types/@jest/pattern": ["@jest/[email protected]", "", { "dependencies": { "@types/node": "*", "jest-regex-util": "30.4.0" } }, "sha512-RAWn3+f9u8BsHijKJ71uHcFp6vmyEt6VvoWXkl6hKF3qVIuWNmudVjg12DlBPGup/frIl5UcUlH5HfEuvHpEXg=="],
+
+ "@jest/create-cache-key-function/@jest/types/@jest/schemas": ["@jest/[email protected]", "", { "dependencies": { "@sinclair/typebox": "^0.34.0" } }, "sha512-i6b4qw5qnP8c5FEeBJg/uZQ4ddrkN6Ca8qISJh0pr7a5hfn3h3v5x60BEbOC7OYAGZNMs1LfFLwnW2CuK8F57Q=="],
+
"@jest/fake-timers/@sinonjs/fake-timers/@sinonjs/commons": ["@sinonjs/[email protected]", "", { "dependencies": { "type-detect": "4.0.8" } }, "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ=="],
"@jest/reporters/@jridgewell/trace-mapping/@jridgewell/resolve-uri": ["@jridgewell/[email protected]", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],
@@ -8247,6 +8263,8 @@
"@istanbuljs/load-nyc-config/find-up/locate-path/p-locate": ["[email protected]", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="],
+ "@jest/create-cache-key-function/@jest/types/@jest/pattern/jest-regex-util": ["[email protected]", "", {}, "sha512-mWlvLviKIgIQ8VCuM1xRdD0TWp3zlzionlmDBjuXVBs+VkmXq6FgW9T4Emr7oGz/Rk6feDCGyiugolcQEyp3mg=="],
+
"@jest/reporters/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],
"@jest/reporters/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],
diff --git a/frontend/src/metabase/api/security-center.ts b/frontend/src/metabase/api/security-center.ts
index b9644be0c0a..2420e97a26c 100644
--- a/frontend/src/metabase/api/security-center.ts
+++ b/frontend/src/metabase/api/security-center.ts
@@ -1,4 +1,3 @@
-import { Api } from "metabase/api";
import type {
AcknowledgeAdvisoriesResponse,
AcknowledgeAdvisoryResponse,
@@ -6,6 +5,7 @@ import type {
ListAdvisoriesResponse,
} from "metabase-types/api";
+import { Api } from "./api";
import { listTag } from "./tags";
export const securityCenterApi = Api.injectEndpoints({
endpoints: (builder) => ({
diff --git a/frontend/src/metabase/dashboard/components/DashboardHeader/DashboardHeaderView.tsx b/frontend/src/metabase/dashboard/components/DashboardHeader/DashboardHeaderView.tsx
index ec74ba3a599..d8ce6a60a01 100644
--- a/frontend/src/metabase/dashboard/components/DashboardHeader/DashboardHeaderView.tsx
+++ b/frontend/src/metabase/dashboard/components/DashboardHeader/DashboardHeaderView.tsx
@@ -30,8 +30,9 @@ import { FullWidthContainer } from "metabase/styled-components/layout/FullWidthC
import { Box, Flex } from "metabase/ui";
import type { Collection, Dashboard as IDashboard } from "metabase-types/api";
-import { Dashboard } from "../Dashboard";
import { FixedWidthContainer } from "../Dashboard/DashboardComponents";
+import { DashboardTabs } from "../DashboardTabs";
+import { DashboardTitle } from "../DashboardTitle";
import S from "./DashboardHeaderView.module.css";
@@ -139,7 +140,7 @@ export function DashboardHeaderView({
})}
>
<Flex className={S.HeaderCaptionContainer} gap={2}>
- <Dashboard.Title className={S.HeaderCaption} />
+ <DashboardTitle className={S.HeaderCaption} />
<Flex
align="center"
@@ -183,7 +184,7 @@ export function DashboardHeaderView({
data-testid="fixed-width-dashboard-tabs"
isFixedWidth={dashboard?.width === "fixed"}
>
- <Dashboard.Tabs />
+ <DashboardTabs />
</FixedWidthContainer>
</FullWidthContainer>
</div>
diff --git a/frontend/src/metabase/dashboard/components/DashboardParameterPanel/DashboardParameterPanel.tsx b/frontend/src/metabase/dashboard/components/DashboardParameterPanel/DashboardParameterPanel.tsx
index 9529a270053..3361e10cd5b 100644
--- a/frontend/src/metabase/dashboard/components/DashboardParameterPanel/DashboardParameterPanel.tsx
+++ b/frontend/src/metabase/dashboard/components/DashboardParameterPanel/DashboardParameterPanel.tsx
@@ -11,9 +11,9 @@ import { useSelector } from "metabase/redux";
import { FullWidthContainer } from "metabase/styled-components/layout/FullWidthContainer";
import { isSmallScreen } from "metabase/utils/dom";
-import { Dashboard } from "../Dashboard";
import DashboardS from "../Dashboard/Dashboard.module.css";
import { FixedWidthContainer } from "../Dashboard/DashboardComponents";
+import { ParametersList } from "../Dashboard/components";
import S from "./DashboardParameterPanel.module.css";
@@ -56,7 +56,7 @@ export function DashboardParameterPanel() {
isFixedWidth={dashboard?.width === "fixed"}
data-testid="fixed-width-filters"
>
- <Dashboard.ParametersList />
+ <ParametersList />
</FixedWidthContainer>
</FullWidthContainer>
</span>
@@ -79,7 +79,7 @@ export function DashboardParameterPanel() {
isFixedWidth={dashboard?.width === "fixed"}
data-testid="fixed-width-filters"
>
- <Dashboard.ParametersList />
+ <ParametersList />
</FixedWidthContainer>
</FullWidthContainer>
</span>
diff --git a/frontend/src/metabase/embedding/components/EmbedModal/StaticEmbedSetupPane/tests/setup.tsx b/frontend/src/metabase/embedding/components/EmbedModal/StaticEmbedSetupPane/tests/setup.tsx
index 8e29d757472..f4c4eedbe4a 100644
--- a/frontend/src/metabase/embedding/components/EmbedModal/StaticEmbedSetupPane/tests/setup.tsx
+++ b/frontend/src/metabase/embedding/components/EmbedModal/StaticEmbedSetupPane/tests/setup.tsx
@@ -24,13 +24,13 @@ import {
import type { StaticEmbedSetupPaneProps } from "../StaticEmbedSetupPane";
import { StaticEmbedSetupPane } from "../StaticEmbedSetupPane";
-const TextEditorMock = ({
+function TextEditorMock({
highlightRanges,
value,
}: {
highlightRanges?: { start: number; end: number }[];
value: string;
-}) => {
+}) {
const highlightedTexts = highlightRanges?.map((range) =>
value.slice(range.start, range.end),
);
@@ -42,7 +42,7 @@ const TextEditorMock = ({
</div>
</>
);
-};
+}
jest.mock("metabase/common/components/CodeEditor", () => ({
CodeEditor: TextEditorMock,
diff --git a/frontend/src/metabase/nav/components/AppBar/AppBar.unit.spec.tsx b/frontend/src/metabase/nav/components/AppBar/AppBar.unit.spec.tsx
index edb997ceb77..761476fedd3 100644
--- a/frontend/src/metabase/nav/components/AppBar/AppBar.unit.spec.tsx
+++ b/frontend/src/metabase/nav/components/AppBar/AppBar.unit.spec.tsx
@@ -9,17 +9,29 @@ import { createMockUser } from "metabase-types/api/mocks";
import type { AppBarProps } from "./AppBar";
import AppBar from "./AppBar";
-const NewItemButtonMock = () => <div data-testid="new-button" />;
-const SearchBarMock = () => <div data-testid="search-bar" />;
-const SearchButtonMock = {
- SearchButton: () => <div data-testid="search-button" />,
-};
-const BreadcrumbsMock = () => <div data-testid="collection-path" />;
-const QuestionLineageMock = () => <div data-testid="question-lineage" />;
+function NewItemButtonMock() {
+ return <div data-testid="new-button" />;
+}
+
+function SearchBarMock() {
+ return <div data-testid="search-bar" />;
+}
+
+function SearchButton() {
+ return <div data-testid="search-button" />;
+}
+
+function BreadcrumbsMock() {
+ return <div data-testid="collection-path" />;
+}
+
+function QuestionLineageMock() {
+ return <div data-testid="question-lineage" />;
+}
jest.mock("../NewItemButton", () => NewItemButtonMock);
jest.mock("../search/SearchBar/SearchBar", () => SearchBarMock);
-jest.mock("../search/SearchButton/SearchButton", () => SearchButtonMock);
+jest.mock("../search/SearchButton/SearchButton", () => ({ SearchButton }));
jest.mock("../../containers/CollectionBreadcrumbs", () => BreadcrumbsMock);
jest.mock("../../containers/QuestionLineage", () => QuestionLineageMock);
diff --git a/frontend/src/metabase/public/containers/PublicOrEmbeddedQuestion/PublicOrEmbeddedQuestion/tests/setup.tsx b/frontend/src/metabase/public/containers/PublicOrEmbeddedQuestion/PublicOrEmbeddedQuestion/tests/setup.tsx
index 25cda16e4b4..82f40f5fe34 100644
--- a/frontend/src/metabase/public/containers/PublicOrEmbeddedQuestion/PublicOrEmbeddedQuestion/tests/setup.tsx
+++ b/frontend/src/metabase/public/containers/PublicOrEmbeddedQuestion/PublicOrEmbeddedQuestion/tests/setup.tsx
@@ -27,10 +27,10 @@ import { PublicOrEmbeddedQuestion } from "../PublicOrEmbeddedQuestion";
registerStaticVisualizations();
-const VisualizationMock = ({
+function VisualizationMock({
onUpdateVisualizationSettings,
rawSeries,
-}: VisualizationProps) => {
+}: VisualizationProps) {
const [
{
card,
@@ -55,7 +55,7 @@ const VisualizationMock = ({
</button>
</div>
);
-};
+}
jest.mock(
"metabase/visualizations/components/Visualization",
diff --git a/jest.config.js b/jest.config.js
index 89f670401fe..a46d7f93a6c 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -2,7 +2,42 @@
/** eslint-disable-next-line import/no-commonjs */
const esmPackages = require("./jest.esm-packages.js");
+const swcJestTransform = [
+ "@swc/jest",
+ {
+ jsc: {
+ // Jest runs on Node so we can target a modern engine and skip a bunch
+ // of polyfills/transforms that `env.targets: ["defaults"]` would emit.
+ target: "es2022",
+ loose: true,
+ parser: {
+ syntax: "typescript",
+ tsx: true,
+ },
+ transform: {
+ react: {
+ runtime: "automatic",
+ },
+ },
+ experimental: {
+ plugins: [
+ ["@swc-contrib/mut-cjs-exports", {}],
+ ["@swc/plugin-emotion", { sourceMap: false }],
+ ],
+ },
+ },
+ module: {
+ type: "commonjs",
+ },
+ sourceMaps: "inline",
+ minify: false,
+ },
+];
+
const baseConfig = {
+ transform: {
+ "^.+\\.[jt]sx?$": swcJestTransform,
+ },
moduleNameMapper: {
// Force jose to use Node.js runtime instead of browser runtime in jsdom environment.
// The browser runtime expects CryptoKey to be globally available, which jsdom doesn't provide.
@@ -67,6 +102,7 @@ const baseConfig = {
],
modulePathIgnorePatterns: [
"<rootDir>/target/cljs_release/.*",
+ "<rootDir>/target/classes/.*",
"<rootDir>/resources/frontend_client",
"<rootDir>/.*/__mocks__",
"<rootDir>/enterprise/frontend/src/custom-viz",
@@ -147,6 +183,7 @@ const config = {
displayName: "lint-rules",
testMatch: ["<rootDir>/frontend/lint/tests/**/*.unit.spec.js"],
testEnvironment: "node",
+ transform: baseConfig.transform,
transformIgnorePatterns: baseConfig.transformIgnorePatterns,
},
],
diff --git a/package.json b/package.json
index ef764a9949c..d58bc9ff43f 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,10 @@
"node": ">=22",
"bun": ">=1.0.0"
},
- "trustedDependencies": ["cypress", "esbuild"],
+ "trustedDependencies": [
+ "cypress",
+ "esbuild"
+ ],
"dependencies": {
"@codemirror/autocomplete": "^6.18.6",
"@codemirror/commands": "^6.10.1",
@@ -224,7 +227,9 @@
"@storybook/react-webpack5": "^8.5.0",
"@storybook/test": "^8.5.0",
"@svgr/webpack": "^8.1.0",
+ "@swc-contrib/mut-cjs-exports": "^14.9.0",
"@swc/core": "^1.15.33",
+ "@swc/jest": "0.2.39",
"@swc/plugin-emotion": "^14.9.0",
"@tanstack/table-core": "^8.21.3",
"@testing-library/cypress": "^10.1.0",