From 6b0b4c7fa5fbbf797216c8148844cc0591def15f Mon Sep 17 00:00:00 2001 From: javierbrea Date: Sun, 5 Dec 2021 11:21:02 +0100 Subject: [PATCH] test: Fix wait-on config to make it work with NodeJS 17 --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f0495f..3313b96 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ example(); ## Configuration -By default, the client is configured to request to `http://localhost:3100/admin`, based in the [default options of Mocks Server](https://www.mocks-server.org/docs/configuration-options) +By default, the client is configured to request to `http://127.0.0.1:3100/admin`, based in the [default options of Mocks Server](https://www.mocks-server.org/docs/configuration-options) You can change both the base url of Mocks Server, and the path of the [Admin API plugin][plugin-admin-api-url] using the `config` method: diff --git a/package.json b/package.json index 0b1ac71..19bab57 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "mocks:install": "cd mocks && npm i", "mocks:ci": "cd mocks && npm run mocks:ci", "test": "jest", - "test:unit": "npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test", + "test:unit": "npm run mocks:install && start-server-and-test mocks:ci tcp:127.0.0.1:3200 test", "prepare": "is-ci || husky install" }, "dependencies": {