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
import{suite}from'uvu';import{getUserConsent}from'./some-file.js';constsum=suite('Tests');sum('An interactive test',()=>{if(!getUserConsent()){// Test can't be run: it requires// user consent but there isnt}})
I don't want to throw Error('Can\'t run this test'), since the test didn't fail: it simply can't be run. I know that there is a sum.skip(...) method but it seems to be designed to skip an upcoming test, not the current one.
The text was updated successfully, but these errors were encountered:
Let's say I have a test like this:
I don't want to
throw Error('Can\'t run this test')
, since the test didn't fail: it simply can't be run. I know that there is asum.skip(...)
method but it seems to be designed to skip an upcoming test, not the current one.The text was updated successfully, but these errors were encountered: