@@ -82,7 +82,7 @@ describe('Path traversals', () => {
8282 const path = [ 'friends' , '1' , 'id' ] ;
8383 const error = traversePath ( mapped , path as FieldPath < typeof mapped > ) ;
8484
85- expect ( error ) . toStrictEqual ( {
85+ expect ( error ) . toMatchObject ( {
8686 parent : mapped . friends ! [ 1 ] ,
8787 key : 'id' ,
8888 value : mapped . friends ! [ 1 ] . id ,
@@ -98,7 +98,7 @@ describe('Path traversals', () => {
9898 path as FieldPath < typeof mapped >
9999 ) ;
100100
101- expect ( error ) . toStrictEqual ( {
101+ expect ( error ) . toMatchObject ( {
102102 parent : mapped . friends ! [ 1 ] ,
103103 key : 'id' ,
104104 value : mapped . friends ! [ 1 ] . id ,
@@ -111,7 +111,7 @@ describe('Path traversals', () => {
111111 const path = [ 'friends' , '1' , 'N/A' ] ;
112112 const error = traversePath ( mapped , path as FieldPath < typeof mapped > ) ;
113113
114- expect ( error ) . toStrictEqual ( {
114+ expect ( error ) . toMatchObject ( {
115115 parent : mapped . friends ! [ 1 ] ,
116116 key : 'N/A' ,
117117 value : undefined ,
@@ -135,7 +135,7 @@ describe('Path traversals', () => {
135135 return parent [ key ] ;
136136 }
137137 ) ;
138- expect ( error ) . toStrictEqual ( {
138+ expect ( error ) . toMatchObject ( {
139139 parent : mapped . friends ! [ 2 ] ,
140140 key : 'id' ,
141141 value : undefined ,
@@ -448,7 +448,7 @@ test('Check path existence', () => {
448448
449449 expect ( pathExists ( { } , [ 'tags' , '0' , 'id' ] ) ) . toBeUndefined ( ) ;
450450
451- expect ( pathExists ( errors , [ 'tags' , '0' , 'id' ] ) ) . toStrictEqual ( {
451+ expect ( pathExists ( errors , [ 'tags' , '0' , 'id' ] ) ) . toMatchObject ( {
452452 parent : errors . tags [ 0 ] ,
453453 key : 'id' ,
454454 value : true ,
0 commit comments