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
There are currently two ways to declare a unit test
// original formtest(functionfoo(){assert(true);});// expanded formtest({name: "foo",fn: ()=>{assert(true);});
It turns out that many of the tests in deno_std are using the expanded form. We could shorten this significantly by also allowing
test("foo",()=>{assert(true);});
Someone has suggested this before and noted that a certain existing test framework uses this form as well. (I can't find a reference.) So that's another reason to change.
Edit: reportedly Ava.js, Mocha and Jest all support this.
The text was updated successfully, but these errors were encountered:
There are currently two ways to declare a unit test
It turns out that many of the tests in deno_std are using the expanded form. We could shorten this significantly by also allowing
Someone has suggested this before and noted that a certain existing test framework uses this form as well. (I can't find a reference.) So that's another reason to change.
Edit: reportedly Ava.js, Mocha and Jest all support this.
The text was updated successfully, but these errors were encountered: