diff --git a/package-lock.json b/package-lock.json index 7bc48ec34..21d2bce10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -65,6 +65,7 @@ }, "devDependencies": { "@stylistic/stylelint-plugin": "^4.0.0", + "babel-jest": "^30.2.0", "babel-plugin-transform-import-meta": "^2.3.3", "eslint": "^9.39.1", "eslint-plugin-jest": "^29.1.0", @@ -72,6 +73,7 @@ "globals": "^16.4.0", "jest": "^30.2.0", "jest-expect-message": "^1.1.3", + "jsdom": "^27.4.0", "jsdom-global": "^3.0.2", "postcss-less": "^6.0.0", "stylelint": "^16.25.0", @@ -3241,9 +3243,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "25.0.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.9.tgz", - "integrity": "sha512-/rpCXHlCWeqClNBwUhDcusJxXYDjZTyE8v5oTO7WbL8eij2nKhUeU89/6xgjU7N4/Vh3He0BtyhJdQbDyhiXAw==", + "version": "25.0.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.10.tgz", + "integrity": "sha512-zWW5KPngR/yvakJgGOmZ5vTBemDoSqF3AcV/LrO5u5wTWyEAVVh+IT39G4gtyAkh3CtTZs8aX/yRM82OfzHJRg==", "dev": true, "license": "MIT", "dependencies": { @@ -6042,9 +6044,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.267", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", - "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", + "version": "1.5.277", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.277.tgz", + "integrity": "sha512-wKXFZw4erWmmOz5N/grBoJ2XrNJGDFMu2+W5ACHza5rHtvsqrK4gb6rnLC7XxKB9WlJ+RmyQatuEXmtm86xbnw==", "license": "ISC" }, "node_modules/elliptic": { @@ -10561,21 +10563,6 @@ "node": ">=12" } }, - "node_modules/mongoose/node_modules/gcp-metadata": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.3.0.tgz", - "integrity": "sha512-FNTkdNEnBdlqF2oatizolQqNANMrcqJt6AAYt99B3y1aLLC8Hc5IOBb+ZnnzllodEEf6xMBp6wRcBbc16fa65w==", - "license": "Apache-2.0", - "optional": true, - "peer": true, - "dependencies": { - "gaxios": "^5.0.0", - "json-bigint": "^1.0.0" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/mongoose/node_modules/https-proxy-agent": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", diff --git a/package.json b/package.json index 4ee36d620..92e856d04 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,11 @@ "server" ], "transformIgnorePatterns": [ - "node_modules/(?!nanoid/).*" + "node_modules/(?!(nanoid|@exodus/bytes|parse5)/)" ], + "transform": { + "^.+\\.js$": "babel-jest" + }, "coveragePathIgnorePatterns": [ "build/*" ], @@ -140,6 +143,7 @@ }, "devDependencies": { "@stylistic/stylelint-plugin": "^4.0.0", + "babel-jest": "^30.2.0", "babel-plugin-transform-import-meta": "^2.3.3", "eslint": "^9.39.1", "eslint-plugin-jest": "^29.1.0", @@ -147,6 +151,7 @@ "globals": "^16.4.0", "jest": "^30.2.0", "jest-expect-message": "^1.1.3", + "jsdom": "^27.4.0", "jsdom-global": "^3.0.2", "postcss-less": "^6.0.0", "stylelint": "^16.25.0",