From 0ca57b38b5b11cdfb425c991910af60d8ee9a60a Mon Sep 17 00:00:00 2001 From: Fabien BERNARD Date: Sun, 5 Aug 2018 16:40:20 +0200 Subject: [PATCH] Add missing dependencies for testing --- package-lock.json | 12 ++++++++++++ package.json | 10 +++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9dbc9e40..073bc56a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5315,6 +5315,18 @@ "prop-types": "15.6.2" } }, + "react-dom": { + "version": "16.4.2", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.4.2.tgz", + "integrity": "sha512-Usl73nQqzvmJN+89r97zmeUpQDKDlh58eX6Hbs/ERdDHzeBzWy+ENk7fsGQ+5KxArV1iOFPT46/VneklK9zoWw==", + "dev": true, + "requires": { + "fbjs": "0.8.17", + "loose-envify": "1.4.0", + "object-assign": "4.1.1", + "prop-types": "15.6.2" + } + }, "react-fast-compare": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.1.tgz", diff --git a/package.json b/package.json index eba9386c..343d955a 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "url": "https://github.com/contiamo/restful-react" }, "scripts": { + "test": "jest", "watch": "rollup -cw", "build": "rollup -c", "precommit": "lint-staged", @@ -60,11 +61,13 @@ "@types/react": "^16.4.1", "doctoc": "^1.3.1", "husky": "^0.14.3", - "jest": "^23.1.0", - "jest-dom": "^1.8.1", + "isomorphic-fetch": "^2.2.1", + "jest": "^23.4.2", + "jest-dom": "^1.12.0", "lint-staged": "^7.2.0", "nock": "^9.4.4", "prettier": "^1.13.5", + "react-dom": "^16.4.2", "react-testing-library": "^4.1.2", "rollup": "^0.63.5", "rollup-plugin-typescript2": "^0.16.1", @@ -93,6 +96,7 @@ "jsx", "json", "node" - ] + ], + "testURL": "http://localhost" } }