You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue found by @shrekshao. This is a TypeScript type safety thing, not a serious problem, but would be nice to fix because it makes test development harder.
The t.params value in beforeAllSubcases(t => { ... }) has type TestParams & DeepReadonlyObject<...>. The TestParams & shouldn't be there, because it allows t.params.someFieldThatDoesntExist (which has type JSONWithUndefined) which should be a type error (Property 'someFieldThatDoesntExist' does not exist).
It works correctly in the test function .fn(t => { ... }) so there is some difference in how they're set up.
The text was updated successfully, but these errors were encountered:
Issue found by @shrekshao. This is a TypeScript type safety thing, not a serious problem, but would be nice to fix because it makes test development harder.
The
t.params
value inbeforeAllSubcases(t => { ... })
has typeTestParams & DeepReadonlyObject<...>
. TheTestParams &
shouldn't be there, because it allowst.params.someFieldThatDoesntExist
(which has typeJSONWithUndefined
) which should be a type error (Property 'someFieldThatDoesntExist' does not exist
).It works correctly in the test function
.fn(t => { ... })
so there is some difference in how they're set up.The text was updated successfully, but these errors were encountered: