File tree Expand file tree Collapse file tree 3 files changed +62
-85
lines changed Expand file tree Collapse file tree 3 files changed +62
-85
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,12 @@ expect(book0).toStrictEqual({
101
101
title: expect .any (String ),
102
102
author: undefined ,
103
103
});
104
- assertType <{
104
+ expectTypeOf ( book0 ). toEqualTypeOf <{
105
105
__typename: ' Book' ;
106
106
id: string ;
107
107
title: string ;
108
108
author: undefined ;
109
- }>(book0 );
109
+ }>();
110
110
111
111
// nested
112
112
const book1 = await BookFactory .build ({
@@ -123,7 +123,7 @@ expect(book1).toStrictEqual({
123
123
books: undefined ,
124
124
},
125
125
});
126
- assertType <{
126
+ expectTypeOf ( book1 ). toEqualTypeOf <{
127
127
__typename: ' Book' ;
128
128
id: string ;
129
129
title: string ;
@@ -133,7 +133,7 @@ assertType<{
133
133
name: string ;
134
134
books: undefined ;
135
135
};
136
- }>(book1 );
136
+ }>();
137
137
```
138
138
139
139
## Notable features
You can’t perform that action at this time.
0 commit comments