Skip to content

Commit 74e0693

Browse files
authored
test: update error message (#20)
1 parent f1898e6 commit 74e0693

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/basic/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('should throw error when exist type errors', async () => {
1717
},
1818
});
1919

20-
await expect(rsbuild.build()).rejects.toThrowError('build failed!');
20+
await expect(rsbuild.build()).rejects.toThrowError('build failed');
2121

2222
expect(
2323
logs.find((log) => log.includes('File:') && log.includes('/src/index.ts')),

test/multiple-tsconfig/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test('should check multiple tsconfig.json as expected', async () => {
1414
rsbuildConfig: (await loadConfig({ cwd: __dirname })).content,
1515
});
1616

17-
await expect(rsbuild.build()).rejects.toThrowError('build failed!');
17+
await expect(rsbuild.build()).rejects.toThrowError('build failed');
1818

1919
expect(
2020
logs.find((log) =>

0 commit comments

Comments
 (0)