@@ -29,21 +29,21 @@ describe('test/it error throwing', () => {
2929 } ) ;
3030 it ( `it throws error with missing callback function` , ( ) => {
3131 expect ( ( ) => {
32- // @ts -ignore : Easy, we're testing runtime errors here
32+ // @ts -expect-error : Easy, we're testing runtime errors here
3333 circusIt ( 'test2' ) ;
3434 } ) . toThrowError (
3535 'Missing second argument. It must be a callback function. Perhaps you want to use `test.todo` for a test placeholder.' ,
3636 ) ;
3737 } ) ;
3838 it ( `it throws an error when first argument isn't a string` , ( ) => {
3939 expect ( ( ) => {
40- // @ts -ignore : Easy, we're testing runtime errors here
40+ // @ts -expect-error : Easy, we're testing runtime errors here
4141 circusIt ( ( ) => { } ) ;
4242 } ) . toThrowError ( 'Invalid first argument, () => {}. It must be a string.' ) ;
4343 } ) ;
4444 it ( 'it throws an error when callback function is not a function' , ( ) => {
4545 expect ( ( ) => {
46- // @ts -ignore : Easy, we're testing runtime errors here
46+ // @ts -expect-error : Easy, we're testing runtime errors here
4747 circusIt ( 'test4' , 'test4b' ) ;
4848 } ) . toThrowError (
4949 'Invalid second argument, test4b. It must be a callback function.' ,
@@ -56,21 +56,21 @@ describe('test/it error throwing', () => {
5656 } ) ;
5757 it ( `test throws error with missing callback function` , ( ) => {
5858 expect ( ( ) => {
59- // @ts -ignore : Easy, we're testing runtime errors here
59+ // @ts -expect-error : Easy, we're testing runtime errors here
6060 circusTest ( 'test6' ) ;
6161 } ) . toThrowError (
6262 'Missing second argument. It must be a callback function. Perhaps you want to use `test.todo` for a test placeholder.' ,
6363 ) ;
6464 } ) ;
6565 it ( `test throws an error when first argument isn't a string` , ( ) => {
6666 expect ( ( ) => {
67- // @ts -ignore : Easy, we're testing runtime errors here
67+ // @ts -expect-error : Easy, we're testing runtime errors here
6868 circusTest ( ( ) => { } ) ;
6969 } ) . toThrowError ( 'Invalid first argument, () => {}. It must be a string.' ) ;
7070 } ) ;
7171 it ( 'test throws an error when callback function is not a function' , ( ) => {
7272 expect ( ( ) => {
73- // @ts -ignore : Easy, we're testing runtime errors here
73+ // @ts -expect-error : Easy, we're testing runtime errors here
7474 circusTest ( 'test8' , 'test8b' ) ;
7575 } ) . toThrowError (
7676 'Invalid second argument, test8b. It must be a callback function.' ,
0 commit comments