Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@rsbuild/config": "workspace:*",
"@rstest/core": "https://pkg.pr.new/web-infra-dev/rstest/@rstest/core@1b40438",
"@rstest/core": "0.0.1",
"@scripts/test-helper": "workspace:*",
"@types/node": "^22.15.30",
"cross-env": "^7.0.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-webpack-swc > output.sourceMap config for swcMinimizerPlugin 1`] = `
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`environment config > tools.webpack / bundlerChain can be used in environment config 1`] = `
[
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/asset.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-asset > should add image rules correctly 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/basic.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-basic > should apply basic config correctly in development 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/builder.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`should use Rspack as the default bundler > apply Rspack correctly 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-bundle-analyze > should add bundle analyze plugin 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/cache.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-cache > should add cache config correctly 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/config.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`stringifyConfig > should stringify Rsbuild config correctly 1`] = `
"{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/css.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-css > should use custom cssModules rule when using output.cssModules config 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/define.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-define > should register define plugin correctly 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/entry.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-entry > should apply different environments entry config correctly 1`] = `
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`environment config > should normalize environment config correctly 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/hooks.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`initHooks > should init hooks correctly 1`] = `
[
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/html.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-html > should allow to configure html.tags 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-module-federation > should set environment module federation config correctly 1`] = `
[
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/nodeAddons.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-node-addons > should add node addons rule properly 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/output.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-output > output config should works when target is node 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/splitChunks.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-split-chunks > should allow forceSplitting to be an object 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/swc.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-swc > should add browserslist 1`] = `
[
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/wasm.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-wasm > should add wasm rule properly 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugins/babel > babel-loader should works with builtin:swc-loader 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-less > should add less-loader 1`] = `
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`splitChunks > should apply antd/semi/... splitChunks rule when pkg is installed 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugins/react > should configuring \`tools.swc\` to override react runtime 1`] = `
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-sass > should add sass-loader 1`] = `
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-solid > should allow to configure solid preset options 1`] = `
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-stylus > should add stylus loader config correctly 1`] = `
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-svelte > should add rule for \`.svelte.js\` and \`.svelte.ts\` as expected 1`] = `
[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`svgr > configure SVGR options 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Snapshot v1
// Rstest Snapshot v1

exports[`plugin-vue > should add vue-loader and VueLoaderPlugin correctly 1`] = `
{
Expand Down
53 changes: 26 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading