Skip to content

Commit

Permalink
Add expect error.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh committed Nov 27, 2021
1 parent 6a78c35 commit 58dbb9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions integration/simple/simple-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ describe('simple', () => {

it('has fromPartial uses exact types', () => {
const s1 = Simple.fromPartial({
// @ts-expect-error
grandChildren: ['a', 'b'].map((name) => ({ name, typ: null })),
});
});
Expand Down

0 comments on commit 58dbb9d

Please sign in to comment.