Skip to content

Commit

Permalink
test: snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Nov 26, 2024
1 parent fa4706e commit b335c0a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/compat/webpack/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
"web",
"es2017",
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;

Expand Down Expand Up @@ -771,6 +774,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when produ
"web",
"es2017",
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;

Expand Down Expand Up @@ -1100,6 +1106,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
],
},
"target": "node",
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;

Expand Down Expand Up @@ -1418,5 +1427,8 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
"webworker",
"es2017",
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;
6 changes: 6 additions & 0 deletions packages/core/tests/__snapshots__/basic.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ exports[`plugin-basic > should apply basic config correctly in development 1`] =
"name": "HotModuleReplacementPlugin",
},
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;

Expand All @@ -53,5 +56,8 @@ exports[`plugin-basic > should apply basic config correctly in production 1`] =
"plugins": [
RsbuildCorePlugin {},
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;
3 changes: 3 additions & 0 deletions packages/core/tests/__snapshots__/builder.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -399,5 +399,8 @@ exports[`should use Rspack as the default bundler > apply Rspack correctly 1`] =
"web",
"es2017",
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;
12 changes: 12 additions & 0 deletions packages/core/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
"web",
"es2017",
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;

Expand Down Expand Up @@ -867,6 +870,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when prod
"web",
"es2017",
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;

Expand Down Expand Up @@ -1215,6 +1221,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
},
},
"target": "node",
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;

Expand Down Expand Up @@ -1647,5 +1656,8 @@ exports[`tools.rspack > should match snapshot 1`] = `
"web",
"es2017",
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
}
`;
6 changes: 6 additions & 0 deletions packages/core/tests/__snapshots__/environments.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,9 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e
"web",
"es2017",
],
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
},
{
"context": "<ROOT>",
Expand Down Expand Up @@ -1852,6 +1855,9 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e
],
},
"target": "node",
"watchOptions": {
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
},
},
]
`;

0 comments on commit b335c0a

Please sign in to comment.