You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by gl...@apache.org on 2020/02/27 16:10:06 UTC

[couchdb-nano] 12/12: ensure tests run in env=node mode

This is an automated email from the ASF dual-hosted git repository.

glynnbird pushed a commit to branch axios
in repository https://gitbox.apache.org/repos/asf/couchdb-nano.git

commit 58a38c793c1977440a3fe149f3b251fd7d392ff4
Author: Glynn Bird <gl...@gmail.com>
AuthorDate: Thu Feb 27 16:06:03 2020 +0000

    ensure tests run in env=node mode
---
 README.md         |  9 +--------
 package-lock.json | 22 ++++++++++++++--------
 package.json      |  4 ++--
 3 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md
index 7af5e3b..7a0eed3 100644
--- a/README.md
+++ b/README.md
@@ -1277,16 +1277,9 @@ To run (and configure) the test suite simply:
 ``` sh
 cd nano
 npm install
-npm test
+npm run test
 ```
 
-After adding a new test you can run it individually (with verbose output) using:
-
-``` sh
-nano_env=testing node tests/doc/list.js list_doc_params
-```
-
-where `list_doc_params` is the test name.
 
 ## Meta
 
diff --git a/package-lock.json b/package-lock.json
index ceea9f2..f3f82f7 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4930,6 +4930,12 @@
         "path-exists": "^3.0.0"
       }
     },
+    "lodash": {
+      "version": "4.17.15",
+      "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
+      "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
+      "dev": true
+    },
     "lodash.sortby": {
       "version": "4.7.0",
       "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz",
@@ -5126,22 +5132,22 @@
       "dev": true
     },
     "nock": {
-      "version": "11.7.2",
-      "resolved": "https://registry.npmjs.org/nock/-/nock-11.7.2.tgz",
-      "integrity": "sha512-7swr5bL1xBZ5FctyubjxEVySXOSebyqcL7Vy1bx1nS9IUqQWj81cmKjVKJLr8fHhtzI1MV8nyCdENA/cGcY1+Q==",
+      "version": "12.0.1",
+      "resolved": "https://registry.npmjs.org/nock/-/nock-12.0.1.tgz",
+      "integrity": "sha512-f5u5k7O5D2YXH2WEFQVLLPa36D5C0dxU9Lrg6KOuaFCMDt7yd1W4S3hbZClCMczxc4EZ0k1bEhPeMWSewrxYNw==",
       "dev": true,
       "requires": {
         "debug": "^4.1.0",
         "json-stringify-safe": "^5.0.1",
         "lodash": "^4.17.13",
-        "mkdirp": "^0.5.0",
+        "mkdirp": "^1.0.0",
         "propagate": "^2.0.0"
       },
       "dependencies": {
-        "lodash": {
-          "version": "4.17.15",
-          "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
-          "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
+        "mkdirp": {
+          "version": "1.0.3",
+          "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.3.tgz",
+          "integrity": "sha512-6uCP4Qc0sWsgMLy1EOqqS/3rjDHOEnsStVr/4vtAIK2Y5i2kA7lFFejYrpIyiN9w0pYf4ckeCYT9f1r1P9KX5g==",
           "dev": true
         }
       }
diff --git a/package.json b/package.json
index 4065aa5..d5303b9 100644
--- a/package.json
+++ b/package.json
@@ -25,14 +25,14 @@
   },
   "devDependencies": {
     "jest": "^25.1.0",
-    "nock": "^11.7.2",
+    "nock": "^12.0.1",
     "standard": "^14.3.1",
     "typescript": "^3.7.5"
   },
   "scripts": {
     "standard": "standard --fix",
     "test": "standard && tsc lib/nano.d.ts && npm run jest",
-    "jest": "jest test/* --coverage"
+    "jest": "jest test/* --coverage --env node"
   },
   "main": "./lib/nano.js",
   "types": "./lib/nano.d.ts",