Skip to content

Commit

Permalink
test: fix rsbuild inspect config cases (#6072)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Aug 14, 2024
1 parent b0aff52 commit bd923af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-badgers-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2e/builder': patch
---

test: fix rsbuild inspect config cases
13 changes: 8 additions & 5 deletions tests/e2e/builder/cases/inspect-config/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit bd923af

Please sign in to comment.