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

@std/testing/bdd: .ignore() aliasing [xdescribe, xit] #6200

Open
nwayve opened this issue Nov 21, 2024 · 0 comments
Open

@std/testing/bdd: .ignore() aliasing [xdescribe, xit] #6200

nwayve opened this issue Nov 21, 2024 · 0 comments

Comments

@nwayve
Copy link

nwayve commented Nov 21, 2024

Is your feature request related to a problem? Please describe.

With the @std/testing/bdd module you can write your tests in a familiar format for grouping tests and adding setup/teardown hooks used by other JavaScript testing frameworks like Jasmine, Jest, and Mocha.

Source

A feature of the Jasmine/Jest/Mocha style of writing tests includes the ability to skip tests via prefixing describe or it with x. This would functionally be the same as adding .ignore to describe or it.


Describe the solution you'd like

As a developer that is familiar with the Jasmine, Jest, and Mocha style of writing tests,
I would like to ignore tests by prefixing describe and/or it with an x,
so that I can skip tests in a familiar way and won't have to find/replace xdescribe with describe.ignore (and with it as well).


Describe alternatives you've considered

In each test file I am able to include const xdescribe = describe.ignore; and const xit = it.ignore; to achieve this functionality but is obviously not ideal.

It would be great if xdescribe and xit could be included with the import of describe and it so that the developer doesn't need to always include four types. Not sure how feasible this is. MVP I'd be ok with importing all four.

@nwayve nwayve changed the title @std/testing/bdd: .ignore() aliasing @std/testing/bdd: .ignore() aliasing [xdescribe, xit] Nov 21, 2024
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