mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
12 lines
195 B
TypeScript
12 lines
195 B
TypeScript
import { test } from 'vitest';
|
|
|
|
test('throws', () => {
|
|
const error = new Error('error with properties')
|
|
Object.assign(error, {
|
|
code: 404,
|
|
status: 'not found',
|
|
})
|
|
throw error
|
|
});
|
|
|