Преглед изворни кода

Add esmock for tests

GitOrigin-RevId: 42be4094f8551a1588de5048b4876557e16888f1
andrew rumble пре 1 година
родитељ
комит
50c74c3168
2 измењених фајлова са 18 додато и 0 уклоњено
  1. 17 0
      package-lock.json
  2. 1 0
      services/web/package.json

+ 17 - 0
package-lock.json

@@ -44076,6 +44076,7 @@
         "eslint-plugin-jsx-a11y": "^6.7.1",
         "eslint-plugin-react": "^7.32.2",
         "eslint-plugin-react-hooks": "^4.6.0",
+        "esmock": "^2.6.7",
         "events": "^3.3.0",
         "fake-indexeddb": "^6.0.0",
         "fetch-mock": "^9.10.2",
@@ -44811,6 +44812,15 @@
         "stream-shift": "^1.0.0"
       }
     },
+    "services/web/node_modules/esmock": {
+      "version": "2.6.7",
+      "resolved": "https://registry.npmjs.org/esmock/-/esmock-2.6.7.tgz",
+      "integrity": "sha512-4DmjZ0qQIG+NQV1njHvWrua/cZEuJq56A3pSELT2BjNuol1aads7BluofCbLErdO41Ic1XCd2UMepVLpjL64YQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=14.16.0"
+      }
+    },
     "services/web/node_modules/events": {
       "version": "3.3.0",
       "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
@@ -52616,6 +52626,7 @@
         "eslint-plugin-jsx-a11y": "^6.7.1",
         "eslint-plugin-react": "^7.32.2",
         "eslint-plugin-react-hooks": "^4.6.0",
+        "esmock": "^2.6.7",
         "events": "^3.3.0",
         "eventsource-parser": "^1.1.2",
         "express": "^4.21.0",
@@ -53254,6 +53265,12 @@
             "stream-shift": "^1.0.0"
           }
         },
+        "esmock": {
+          "version": "2.6.7",
+          "resolved": "https://registry.npmjs.org/esmock/-/esmock-2.6.7.tgz",
+          "integrity": "sha512-4DmjZ0qQIG+NQV1njHvWrua/cZEuJq56A3pSELT2BjNuol1aads7BluofCbLErdO41Ic1XCd2UMepVLpjL64YQ==",
+          "dev": true
+        },
         "events": {
           "version": "3.3.0",
           "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",

+ 1 - 0
services/web/package.json

@@ -299,6 +299,7 @@
     "eslint-plugin-jsx-a11y": "^6.7.1",
     "eslint-plugin-react": "^7.32.2",
     "eslint-plugin-react-hooks": "^4.6.0",
+    "esmock": "^2.6.7",
     "events": "^3.3.0",
     "fake-indexeddb": "^6.0.0",
     "fetch-mock": "^9.10.2",