From 86d07b36a3ece700c21d2e530a3c9f2e63fc88f2 Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Thu, 29 Aug 2019 15:41:58 -0700 Subject: [PATCH] Blocks: Add used packages to fix tests. These aren't needed to run the code, because they exist in the `wp` namespace as externals, but they are needed for unit tests, since they don't otherwise exist in that context. See https://github.com/WordPress/gutenberg/issues/17016#issuecomment-524876593. --- public_html/wp-content/mu-plugins/blocks/package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public_html/wp-content/mu-plugins/blocks/package.json b/public_html/wp-content/mu-plugins/blocks/package.json index c65cf5d980..80162fc002 100644 --- a/public_html/wp-content/mu-plugins/blocks/package.json +++ b/public_html/wp-content/mu-plugins/blocks/package.json @@ -16,13 +16,17 @@ "npm": ">=6.0.0" }, "dependencies": { + "@wordpress/api-fetch": "^3.4.0", + "@wordpress/block-editor": "3.0.0", + "@wordpress/components": "8.1.0", + "@wordpress/core-data": "^2.5.0", + "@wordpress/date": "^3.4.0", + "@wordpress/element": "2.6.0", "classnames": "2.2.6", "react-select": "3.0.4", "rememo": "3.0.0" }, "devDependencies": { - "@wordpress/components": "8.1.0", - "@wordpress/element": "2.6.0", "@wordpress/eslint-plugin": "^2.3.0", "@wordpress/scripts": "3.4.0", "css-loader": "1.0.1",