diff --git a/.changeset/eighty-badgers-drop.md b/.changeset/eighty-badgers-drop.md new file mode 100644 index 000000000000..9b962be76c0e --- /dev/null +++ b/.changeset/eighty-badgers-drop.md @@ -0,0 +1,5 @@ +--- +'@e2e/builder': patch +--- + +test: fix rsbuild inspect config cases diff --git a/tests/e2e/builder/cases/inspect-config/index.test.ts b/tests/e2e/builder/cases/inspect-config/index.test.ts index d72566e1537c..eecd6e4f16ac 100644 --- a/tests/e2e/builder/cases/inspect-config/index.test.ts +++ b/tests/e2e/builder/cases/inspect-config/index.test.ts @@ -3,22 +3,25 @@ import { fs } from '@modern-js/utils'; import { expect, test } from '@modern-js/e2e/playwright'; import { createUniBuilder } from '@scripts/shared'; -const builderConfig = path.resolve(__dirname, './dist/rsbuild.config.mjs'); +const builderConfig = path.resolve( + __dirname, + './dist/.rsbuild/rsbuild.config.mjs', +); const builderWebConfig = path.resolve( __dirname, - './dist/rsbuild.config.web.mjs', + './dist/.rsbuild/rsbuild.config.web.mjs', ); const builderNodeConfig = path.resolve( __dirname, - './dist/rsbuild.config.node.mjs', + './dist/.rsbuild/rsbuild.config.node.mjs', ); const bundlerConfig = path.resolve( __dirname, - `./dist/${process.env.PROVIDE_TYPE || 'webpack'}.config.web.mjs`, + `./dist/.rsbuild/${process.env.PROVIDE_TYPE || 'webpack'}.config.web.mjs`, ); const bundlerNodeConfig = path.resolve( __dirname, - `./dist/${process.env.PROVIDE_TYPE || 'webpack'}.config.node.mjs`, + `./dist/.rsbuild/${process.env.PROVIDE_TYPE || 'webpack'}.config.node.mjs`, ); test('should generate config files when writeToDisk is true', async () => {