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

test: implement spec builder #3422

Merged
merged 1 commit into from
Aug 12, 2020
Merged

test: implement spec builder #3422

merged 1 commit into from
Aug 12, 2020

Conversation

dgozman
Copy link
Contributor

@dgozman dgozman commented Aug 12, 2020

This supports any combinations of it/fit/xit/skip/only/fail/slow, and also auto-detects unconditional modifiers.

The following will run (fit takes precedence):

fit.skip(true)('should work', () => {})

The following will be marked as slow and not run:

it.slow.fail('should work', () => {})

This supports any combinations of it/fit/xit/skip/only/fail/slow,
and also auto-detects unconditional modifiers:

The following will run (fit takes precedence):
fit.skip(true)('should work', () => {})

The following will be marked as slow and not run:
it.slow.skip('should work', () => {})
@pavelfeldman pavelfeldman merged commit f4e65f6 into microsoft:master Aug 12, 2020
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

Successfully merging this pull request may close these issues.

2 participants