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
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.
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.
The text was updated successfully, but these errors were encountered:
nwayve
changed the title
@std/testing/bdd: .ignore() aliasing
@std/testing/bdd: .ignore() aliasing [xdescribe, xit]
Nov 21, 2024
Is your feature request related to a problem? Please describe.
Source
A feature of the Jasmine/Jest/Mocha style of writing tests includes the ability to skip tests via prefixing
describe
orit
withx
. This would functionally be the same as adding.ignore
todescribe
orit
.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/orit
with anx
,so that I can skip tests in a familiar way and won't have to find/replace
xdescribe
withdescribe.ignore
(and withit
as well).Describe alternatives you've considered
In each test file I am able to include
const xdescribe = describe.ignore;
andconst xit = it.ignore;
to achieve this functionality but is obviously not ideal.It would be great if
xdescribe
andxit
could be included with the import ofdescribe
andit
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.The text was updated successfully, but these errors were encountered: