From b335c0a9f67dcb90025d87f8132457ba891fb719 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 26 Nov 2024 10:41:59 +0800 Subject: [PATCH] test: snapshot --- .../webpack/tests/__snapshots__/default.test.ts.snap | 12 ++++++++++++ packages/core/tests/__snapshots__/basic.test.ts.snap | 6 ++++++ .../core/tests/__snapshots__/builder.test.ts.snap | 3 +++ .../core/tests/__snapshots__/default.test.ts.snap | 12 ++++++++++++ .../tests/__snapshots__/environments.test.ts.snap | 6 ++++++ 5 files changed, 39 insertions(+) diff --git a/packages/compat/webpack/tests/__snapshots__/default.test.ts.snap b/packages/compat/webpack/tests/__snapshots__/default.test.ts.snap index b70b5bc750..76c6b76c6e 100644 --- a/packages/compat/webpack/tests/__snapshots__/default.test.ts.snap +++ b/packages/compat/webpack/tests/__snapshots__/default.test.ts.snap @@ -388,6 +388,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = ` "web", "es2017", ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; @@ -771,6 +774,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when produ "web", "es2017", ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; @@ -1100,6 +1106,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe ], }, "target": "node", + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; @@ -1418,5 +1427,8 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe "webworker", "es2017", ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; diff --git a/packages/core/tests/__snapshots__/basic.test.ts.snap b/packages/core/tests/__snapshots__/basic.test.ts.snap index b307d40afc..34538a2637 100644 --- a/packages/core/tests/__snapshots__/basic.test.ts.snap +++ b/packages/core/tests/__snapshots__/basic.test.ts.snap @@ -28,6 +28,9 @@ exports[`plugin-basic > should apply basic config correctly in development 1`] = "name": "HotModuleReplacementPlugin", }, ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; @@ -53,5 +56,8 @@ exports[`plugin-basic > should apply basic config correctly in production 1`] = "plugins": [ RsbuildCorePlugin {}, ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; diff --git a/packages/core/tests/__snapshots__/builder.test.ts.snap b/packages/core/tests/__snapshots__/builder.test.ts.snap index 2e7dbf3d0d..ca701efdf2 100644 --- a/packages/core/tests/__snapshots__/builder.test.ts.snap +++ b/packages/core/tests/__snapshots__/builder.test.ts.snap @@ -399,5 +399,8 @@ exports[`should use Rspack as the default bundler > apply Rspack correctly 1`] = "web", "es2017", ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; diff --git a/packages/core/tests/__snapshots__/default.test.ts.snap b/packages/core/tests/__snapshots__/default.test.ts.snap index ff25cde3bf..b04325ba98 100644 --- a/packages/core/tests/__snapshots__/default.test.ts.snap +++ b/packages/core/tests/__snapshots__/default.test.ts.snap @@ -414,6 +414,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = ` "web", "es2017", ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; @@ -867,6 +870,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when prod "web", "es2017", ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; @@ -1215,6 +1221,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe }, }, "target": "node", + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; @@ -1647,5 +1656,8 @@ exports[`tools.rspack > should match snapshot 1`] = ` "web", "es2017", ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, } `; diff --git a/packages/core/tests/__snapshots__/environments.test.ts.snap b/packages/core/tests/__snapshots__/environments.test.ts.snap index 334a51e6f5..17940e699f 100644 --- a/packages/core/tests/__snapshots__/environments.test.ts.snap +++ b/packages/core/tests/__snapshots__/environments.test.ts.snap @@ -1526,6 +1526,9 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e "web", "es2017", ], + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, }, { "context": "", @@ -1852,6 +1855,9 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e ], }, "target": "node", + "watchOptions": { + "ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/, + }, }, ] `;