From 8d9667b50a92993a4bfdca4957c1b200752ae130 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Fri, 22 Dec 2023 12:36:24 +0100 Subject: [PATCH] Update snaps --- .../test/__snapshots__/build.js.snap | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/dependency-extraction-webpack-plugin/test/__snapshots__/build.js.snap b/packages/dependency-extraction-webpack-plugin/test/__snapshots__/build.js.snap index 3c920c7b29f2d0..24cf73294b0ba5 100644 --- a/packages/dependency-extraction-webpack-plugin/test/__snapshots__/build.js.snap +++ b/packages/dependency-extraction-webpack-plugin/test/__snapshots__/build.js.snap @@ -510,10 +510,15 @@ exports[`DependencyExtractionWebpackPlugin scripts Webpack \`wordpress\` should ] `; -exports[`DependencyExtractionWebpackPlugin scripts Webpack \`wordpress-interactivity\` should produce expected output: Asset file 'main.asset.json' should match snapshot 1`] = `"{"dependencies":["lodash","wp-interactivity"],"version":"ea7590e6d8a8e420f99f"}"`; +exports[`DependencyExtractionWebpackPlugin scripts Webpack \`wordpress-interactivity\` should produce expected output: Asset file 'main.asset.json' should match snapshot 1`] = `"{"dependencies":["lodash","react","wp-dom-ready"],"version":"8d9fcb3d75d3b475913c"}"`; exports[`DependencyExtractionWebpackPlugin scripts Webpack \`wordpress-interactivity\` should produce expected output: External modules should match snapshot 1`] = ` [ + { + "externalType": "window", + "request": "React", + "userRequest": "react", + }, { "externalType": "window", "request": "lodash", @@ -523,9 +528,9 @@ exports[`DependencyExtractionWebpackPlugin scripts Webpack \`wordpress-interacti "externalType": "window", "request": [ "wp", - "interactivity", + "domReady", ], - "userRequest": "@wordpress/interactivity", + "userRequest": "@wordpress/dom-ready", }, ] `;