Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Aug 20, 2024
1 parent a7e3ebe commit fcd9a89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
18 changes: 7 additions & 11 deletions test/__snapshots__/errors.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ test/usage.test.ts:999:999 - error TS2344: Type '{ a: number; }' does not satisf
test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
999 expectTypeOf<{a?: number}>().toEqualTypeOf<{a: number | undefined}>()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
src/index.ts:999:999
999 ...MISMATCH: MismatchArgs<StrictEqualUsingTSInternalIdenticalToOperator<Actual, Expected>, true>
Expand All @@ -201,7 +201,7 @@ test/usage.test.ts:999:999 - error TS2344: Type '{ a: {}; }' does not satisfy th
test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
999 expectTypeOf<A1>().toEqualTypeOf<E1>()
~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
src/index.ts:999:999
999 ...MISMATCH: MismatchArgs<StrictEqualUsingTSInternalIdenticalToOperator<Actual, Expected>, true>
Expand All @@ -210,7 +210,7 @@ test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
999 expectTypeOf<A2>().toEqualTypeOf<E2>()
~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
src/index.ts:999:999
999 ...MISMATCH: MismatchArgs<StrictEqualUsingTSInternalIdenticalToOperator<Actual, Expected>, true>
Expand All @@ -219,7 +219,7 @@ test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
999 expectTypeOf<typeof A>().toEqualTypeOf<typeof B>()
~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
src/index.ts:999:999
999 ...MISMATCH: MismatchArgs<StrictEqualUsingTSInternalIdenticalToOperator<Actual, Expected>, true>
Expand All @@ -228,7 +228,7 @@ test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
999 expectTypeOf<{a: 1} & {b: 2}>().toEqualTypeOf<{a: 1; b: 2}>()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
src/index.ts:999:999
999 ...MISMATCH: MismatchArgs<StrictEqualUsingTSInternalIdenticalToOperator<Actual, Expected>, true>
Expand All @@ -237,7 +237,7 @@ test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
999 expectTypeOf<{a: {b: 1} & {c: 1}}>().toEqualTypeOf<{a: {b: 1; c: 1}}>()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
src/index.ts:999:999
999 ...MISMATCH: MismatchArgs<StrictEqualUsingTSInternalIdenticalToOperator<Actual, Expected>, true>
Expand All @@ -254,11 +254,7 @@ test/usage.test.ts:999:999 - error TS2344: Type '() => () => () => () => 2' does
test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
999 expectTypeOf<() => () => () => () => {a: 1} & {b: 2}>().toEqualTypeOf<
~~~~~~~~~~~~~~
999 () => () => () => () => {a: 1; b: 2}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
999 >()
~~~~~
~~~~~~~~~~~~~
src/index.ts:999:999
999 ...MISMATCH: MismatchArgs<StrictEqualUsingTSInternalIdenticalToOperator<Actual, Expected>, true>
Expand Down
7 changes: 3 additions & 4 deletions test/errors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ test('toEqualTypeOf<...>() error message', async () => {

test('toEqualTypeOf(...) error message', async () => {
expect(tsErrors(`expectTypeOf({a: 1}).toEqualTypeOf({a: 'one'})`)).toMatchInlineSnapshot(`
"test/test.ts:999:999 - error TS2345: Argument of type '{ a: string; }' is not assignable to parameter of type 'Mismatch'.
Object literal may only specify known properties, and 'a' does not exist in type 'Mismatch'.
"test/test.ts:999:999 - error TS2353: Object literal may only specify known properties, and 'a' does not exist in type 'Mismatch'.
999 expectTypeOf({a: 1}).toEqualTypeOf({a: 'one'})
~~~~~~~~"
~"
`)
})

Expand Down Expand Up @@ -61,7 +60,7 @@ test('toEqualTypeOf special types', async () => {
test/test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0.
999 expectTypeOf<{a: 1}>().toEqualTypeOf<{a: never}>()
~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
src/index.ts:999:999
999 ...MISMATCH: MismatchArgs<StrictEqualUsingTSInternalIdenticalToOperator<Actual, Expected>, true>
Expand Down

0 comments on commit fcd9a89

Please sign in to comment.