@@ -11,6 +11,7 @@ async function asyncResolve(): Promise<void> {
1111 // Does nothing
1212}
1313
14+ // biome-ignore lint/suspicious/useAwait: Only for testing purpose.
1415async function asyncReject ( ) : Promise < void > {
1516 throw new Error ( "error" ) ;
1617}
@@ -265,7 +266,7 @@ describe("cmd", () => {
265266 expect ( message . name ) . toBe ( "success" ) ;
266267 } ) ;
267268
268- it ( "ignores the error for a sync task" , async ( ) => {
269+ it ( "ignores the error for a sync task" , ( ) => {
269270 // arrange
270271 const result = cmd . ofSuccess ( syncError , successMsg ) ;
271272
@@ -276,7 +277,7 @@ describe("cmd", () => {
276277 expect ( succeeds ) . not . toThrow ( ) ;
277278 } ) ;
278279
279- it ( "ignores the error for an async task" , async ( ) => {
280+ it ( "ignores the error for an async task" , ( ) => {
280281 // arrange
281282 const result = cmd . ofSuccess ( asyncReject , successMsg ) ;
282283
@@ -420,7 +421,7 @@ describe("cmd", () => {
420421 expect ( task ) . toHaveBeenCalledTimes ( 1 ) ;
421422 } ) ;
422423
423- it ( "ignores the error for a sync task" , async ( ) => {
424+ it ( "ignores the error for a sync task" , ( ) => {
424425 // arrange
425426 const result = cmd . ofNone ( syncError ) ;
426427
@@ -431,7 +432,7 @@ describe("cmd", () => {
431432 expect ( succeeds ) . not . toThrow ( ) ;
432433 } ) ;
433434
434- it ( "ignores the error for an async task" , async ( ) => {
435+ it ( "ignores the error for an async task" , ( ) => {
435436 // arrange
436437 const result = cmd . ofNone ( asyncReject ) ;
437438
0 commit comments