Expect to throw with Typescript using Bun:test - ts(2348)
typescript, bunjs
Basic Example
Be careful on
() =>
Async Example
Use
rejects
forPromise
Advanced Usage with Custom Error Types
Use
new CustomError()
insteadCustomError
to prevent warningBe careful on
() =>
Value of type "typeof X' is not callable. Did you mean to include 'new'? ts(2348)
To prevent the error shown (it can run as expected) use
new AlreadyAdjusted()
PreviousAlfred5 icin python ve alfred5 paketi ile Alfred Workflowu GelistirmekNextType Alias Gösterimi Sorunu ve Çözümü
Last updated