From d0751b48b0b73db1cbc0253a4ec06d9ff77aba65 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 13 Mar 2025 21:25:54 +0800 Subject: [PATCH] test: update error message --- test/basic/index.test.ts | 2 +- test/flat-config/index.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/basic/index.test.ts b/test/basic/index.test.ts index 5e743d5..c94ff13 100644 --- a/test/basic/index.test.ts +++ b/test/basic/index.test.ts @@ -16,7 +16,7 @@ test('should throw error when exist ESLint errors', async () => { plugins: [pluginEslint()], }, }); - await expect(rsbuild.build()).rejects.toThrowError('build failed!'); + await expect(rsbuild.build()).rejects.toThrowError('build failed'); expect( logs.find((log) => log.includes(`'undefinedVar' is not defined`)), diff --git a/test/flat-config/index.test.ts b/test/flat-config/index.test.ts index a750850..fd40a04 100644 --- a/test/flat-config/index.test.ts +++ b/test/flat-config/index.test.ts @@ -23,7 +23,7 @@ test('should throw error when exist ESLint errors', async () => { ], }, }); - await expect(rsbuild.build()).rejects.toThrowError('build failed!'); + await expect(rsbuild.build()).rejects.toThrowError('build failed'); expect( logs.find((log) => log.includes(`'undefinedVar' is not defined`)),