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
Coming out of discussions in avajs/ava#2449 we may want to consider supporting additional assertions for use with TypeScript. Say a t.guard(obj, fn) which can be used in an if condition:
if(t.guard(fooOrBar,isFoo)){// Do stuff know that we know fooOrBar is Foo}
Of course AVA does not support custom assertions yet, but keep an eye on avajs/ava#2435.
We'll also have to consider how you might import a test function that has these assertions installed.
The text was updated successfully, but these errors were encountered:
Coming out of discussions in avajs/ava#2449 we may want to consider supporting additional assertions for use with TypeScript. Say a
t.guard(obj, fn)
which can be used in anif
condition:Of course AVA does not support custom assertions yet, but keep an eye on avajs/ava#2435.
We'll also have to consider how you might import a test function that has these assertions installed.
The text was updated successfully, but these errors were encountered: