From 307fb877ee65a3aa4ae5e3eaab964e94eb6e93cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 7 Jun 2022 11:49:10 -0300 Subject: [PATCH] fix tests --- .../__tests__/__snapshots__/webpack-basic-config.js.snap | 4 ++-- .../__tests__/__snapshots__/webpack-cli-arguments.js.snap | 6 +++--- .../__tests__/__snapshots__/webpack-fast-refresh.js.snap | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/toolkit/config/__tests__/__snapshots__/webpack-basic-config.js.snap b/packages/toolkit/config/__tests__/__snapshots__/webpack-basic-config.js.snap index 857b9fff..26517f90 100644 --- a/packages/toolkit/config/__tests__/__snapshots__/webpack-basic-config.js.snap +++ b/packages/toolkit/config/__tests__/__snapshots__/webpack-basic-config.js.snap @@ -315,7 +315,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, @@ -1129,7 +1129,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, diff --git a/packages/toolkit/config/__tests__/__snapshots__/webpack-cli-arguments.js.snap b/packages/toolkit/config/__tests__/__snapshots__/webpack-cli-arguments.js.snap index 0f81a316..b09ead24 100644 --- a/packages/toolkit/config/__tests__/__snapshots__/webpack-cli-arguments.js.snap +++ b/packages/toolkit/config/__tests__/__snapshots__/webpack-cli-arguments.js.snap @@ -332,7 +332,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, @@ -507,7 +507,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, @@ -682,7 +682,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", }, diff --git a/packages/toolkit/config/__tests__/__snapshots__/webpack-fast-refresh.js.snap b/packages/toolkit/config/__tests__/__snapshots__/webpack-fast-refresh.js.snap index d862c958..bf186aac 100644 --- a/packages/toolkit/config/__tests__/__snapshots__/webpack-fast-refresh.js.snap +++ b/packages/toolkit/config/__tests__/__snapshots__/webpack-fast-refresh.js.snap @@ -145,7 +145,7 @@ Object { return 'fast-refresh/hmr-runtime.js'; } - return buildFiles[pathData.chunk.name].match(/\\/blocks\\//) ? filenames.block : filenames.js; + return buildFiles[pathData.chunk.name].match(/\\/blocks?\\//) ? filenames.block : filenames.js; }, "path": "/dist", },