Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable t.X functions #12

Open
mcnuttandrew opened this issue Mar 13, 2018 · 0 comments
Open

Enable t.X functions #12

mcnuttandrew opened this issue Mar 13, 2018 · 0 comments

Comments

@mcnuttandrew
Copy link
Owner

There are a whole bunch of functions like .only and .skip which are disallowed by the trb implementation, it would be good if we could reproduce those. To be clear I'm referring to the functions that would in regular tape be invoked through commands like

tape.only('my cool test', t => etc)

A naive solution involves stapling additional functionality in through the test object syntax eg

{
     name: 'my cool test',
     test: t => t.ok(1, 'yep'},
     only: true,
     onFinish: () => console.log('cool dogs wear sunglasses')
}

Upside: this is really obvious and probably easy to use.
Downside: it probably means TRB will need to create it's own versions of each of those operators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant