Skip to content

Commit 6c3aa23

Browse files
committed
fix(cli): avoid assuming a test config filename
1 parent efefc79 commit 6c3aa23

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/rstack/src/cli/commands.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function runRsbuildCLI(args: string[]): Promise<void> {
3434
async function runRstestCLI(args: string[]): Promise<void> {
3535
if (args[0] === 'init') {
3636
logger.error(
37-
'Rstack CLI does not support "rs test init". Configure browser tests manually with define.test() in rstack.config.ts.',
37+
'Rstack CLI does not support "rs test init". Configure browser tests manually with `define.test()` in your Rstack config.',
3838
);
3939
process.exitCode = 1;
4040
return;

‎packages/rstack/tests/cli/help.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ test('directs test init users to manual browser setup', ({
5959
expect,
6060
}) => {
6161
expect(() => execCli('test init browser')).toThrow(
62-
'Configure browser tests manually with define.test()',
62+
'Configure browser tests manually with `define.test()` in your Rstack config.',
6363
);
6464
});

0 commit comments

Comments
 (0)