Skip to content

Commit 3dfdab5

Browse files
Update test/error-handling/index.test.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent fb1d14c commit 3dfdab5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/error-handling/index.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ test('should fail with clear error when config file is missing', async () => {
2121
// We expect the build to fail
2222
try {
2323
await rsbuild.build();
24-
// If it doesn't fail, fail the test
25-
expect(true).toBe(false);
24+
throw new Error('Build was expected to fail, but it succeeded.');
2625
} catch (err: unknown) {
2726
const error = err as Error;
2827
// Check for error message

0 commit comments

Comments
 (0)