git.fiddlerwoaroof.com
Browse code

chore: add jest types

Edward authored on 30/12/2021 10:48:31
Showing 2 changed files
... ...
@@ -13,6 +13,7 @@
13 13
         "@babel/core": "^7.10.4",
14 14
         "@babel/plugin-proposal-object-rest-spread": "^7.10.4",
15 15
         "@babel/preset-env": "^7.10.4",
16
+        "@types/jest": "^27.0.3",
16 17
         "babel-core": "^7.0.0-bridge.0",
17 18
         "eslint": "^8.4.1",
18 19
         "eslint-plugin-react": "^7.20.3",
... ...
@@ -4725,6 +4726,16 @@
4725 4726
         "@types/istanbul-lib-report": "*"
4726 4727
       }
4727 4728
     },
4729
+    "node_modules/@types/jest": {
4730
+      "version": "27.0.3",
4731
+      "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.0.3.tgz",
4732
+      "integrity": "sha512-cmmwv9t7gBYt7hNKH5Spu7Kuu/DotGa+Ff+JGRKZ4db5eh8PnKS4LuebJ3YLUoyOyIHraTGyULn23YtEAm0VSg==",
4733
+      "dev": true,
4734
+      "dependencies": {
4735
+        "jest-diff": "^27.0.0",
4736
+        "pretty-format": "^27.0.0"
4737
+      }
4738
+    },
4728 4739
     "node_modules/@types/node": {
4729 4740
       "version": "15.12.2",
4730 4741
       "dev": true,
... ...
@@ -15227,6 +15238,16 @@
15227 15238
         "@types/istanbul-lib-report": "*"
15228 15239
       }
15229 15240
     },
15241
+    "@types/jest": {
15242
+      "version": "27.0.3",
15243
+      "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.0.3.tgz",
15244
+      "integrity": "sha512-cmmwv9t7gBYt7hNKH5Spu7Kuu/DotGa+Ff+JGRKZ4db5eh8PnKS4LuebJ3YLUoyOyIHraTGyULn23YtEAm0VSg==",
15245
+      "dev": true,
15246
+      "requires": {
15247
+        "jest-diff": "^27.0.0",
15248
+        "pretty-format": "^27.0.0"
15249
+      }
15250
+    },
15230 15251
     "@types/node": {
15231 15252
       "version": "15.12.2",
15232 15253
       "dev": true
... ...
@@ -7,12 +7,12 @@
7 7
   "repository": "https://github.com/fiddlerwoaroof/js-generic-functions",
8 8
   "homepage": "https://fiddlerwoaroof.github.io/js-generic-functions/",
9 9
   "main": "dist/genfuns.js",
10
-  "dependencies": {},
11 10
   "devDependencies": {
12 11
     "@babel/cli": "^7.10.4",
13 12
     "@babel/core": "^7.10.4",
14 13
     "@babel/plugin-proposal-object-rest-spread": "^7.10.4",
15 14
     "@babel/preset-env": "^7.10.4",
15
+    "@types/jest": "^27.0.3",
16 16
     "babel-core": "^7.0.0-bridge.0",
17 17
     "eslint": "^8.4.1",
18 18
     "eslint-plugin-react": "^7.20.3",
... ...
@@ -30,6 +30,7 @@
30 30
   ],
31 31
   "scripts": {
32 32
     "test": "jest src",
33
+    "test:watch": "jest --watch src",
33 34
     "format": "prettier --write .",
34 35
     "build": "babel -d dist src",
35 36
     "prepublishOnly": "babel -d dist src && jest src && eslint src"