This commit is contained in:
2026-08-28 17:31:02 +02:00
commit 2b30e8bd39
694 changed files with 49243 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { getErrorMessage } from './getErrorMessage';
describe('getErrorMessage', () => {
it('returns the message from Error instances', () => {
expect(getErrorMessage(new Error('boom'))).toBe('boom');
});
it('stringifies non-error values', () => {
expect(getErrorMessage('plain')).toBe('plain');
expect(getErrorMessage(404)).toBe('404');
});
});