@@ -5,29 +5,29 @@ describe('unreachable', () => {
55 expect ( ( ) =>
66 corrupt ( undefined as never ) ,
77 ) . toThrowErrorMatchingInlineSnapshot (
8- '" Internal Error: encountered impossible value \\ "undefined\\""' ,
8+ `[TypeError: Internal Error: encountered impossible value "undefined"]` ,
99 ) ;
1010 } ) ;
1111
1212 it ( 'handles "null' , ( ) => {
1313 expect ( ( ) => corrupt ( null as never ) ) . toThrowErrorMatchingInlineSnapshot (
14- '" Internal Error: encountered impossible value \\ "null\\""' ,
14+ `[TypeError: Internal Error: encountered impossible value "null"]` ,
1515 ) ;
1616 } ) ;
1717
1818 it ( 'handles strings' , ( ) => {
1919 expect ( ( ) =>
2020 corrupt ( 'corrupt' as never ) ,
2121 ) . toThrowErrorMatchingInlineSnapshot (
22- '" Internal Error: encountered impossible value \\ "corrupt\\""' ,
22+ `[TypeError: Internal Error: encountered impossible value "corrupt"]` ,
2323 ) ;
2424 } ) ;
2525
2626 it ( 'handles objects' , ( ) => {
2727 expect ( ( ) =>
2828 corrupt ( { key : 'corrupt' } as never ) ,
2929 ) . toThrowErrorMatchingInlineSnapshot (
30- '" Internal Error: encountered impossible value \\"{\\ "key\\":\\ "corrupt\\"}\\""' ,
30+ `[TypeError: Internal Error: encountered impossible value "{ "key": "corrupt"}"]` ,
3131 ) ;
3232 } ) ;
3333
@@ -36,31 +36,31 @@ describe('unreachable', () => {
3636 obj . corrupt = obj ;
3737
3838 expect ( ( ) => corrupt ( obj as never ) ) . toThrowErrorMatchingInlineSnapshot (
39- '" Internal Error: encountered impossible value \\ "circular object\\""' ,
39+ `[TypeError: Internal Error: encountered impossible value "circular object"]` ,
4040 ) ;
4141 } ) ;
4242
4343 it ( 'handles arrays' , ( ) => {
4444 expect ( ( ) =>
4545 corrupt ( [ 'corrupt' ] as never ) ,
4646 ) . toThrowErrorMatchingInlineSnapshot (
47- '" Internal Error: encountered impossible value \\"[\\ "corrupt\\"]\\""' ,
47+ `[TypeError: Internal Error: encountered impossible value "[ "corrupt"]"]` ,
4848 ) ;
4949 } ) ;
5050
5151 it ( 'handles BigInt' , ( ) => {
5252 expect ( ( ) =>
5353 corrupt ( BigInt ( 1 ) as never ) ,
5454 ) . toThrowErrorMatchingInlineSnapshot (
55- '" Internal Error: encountered impossible value \\ "1 (bigint)\\""' ,
55+ `[TypeError: Internal Error: encountered impossible value "1 (bigint)"]` ,
5656 ) ;
5757 } ) ;
5858
5959 it ( 'handles Symbol' , ( ) => {
6060 expect ( ( ) =>
6161 corrupt ( Symbol ( 'corrupt' ) as never ) ,
6262 ) . toThrowErrorMatchingInlineSnapshot (
63- '" Internal Error: encountered impossible value \\ "Symbol(corrupt)\\""' ,
63+ `[TypeError: Internal Error: encountered impossible value "Symbol(corrupt)"]` ,
6464 ) ;
6565 } ) ;
6666
@@ -70,7 +70,7 @@ describe('unreachable', () => {
7070 } ) ;
7171
7272 expect ( ( ) => corrupt ( { } as never ) ) . toThrowErrorMatchingInlineSnapshot (
73- '" Unexpected error: failed to stringify value"' ,
73+ `[Error: Unexpected error: failed to stringify value]` ,
7474 ) ;
7575 } ) ;
7676} ) ;
0 commit comments