deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

bdd testing it.todo

Open hesxenon opened this issue 1 year ago • 3 comments

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

I'm currently in the process of migrating some of my libraries to deno and noticed that it.todo and describe.todo are not available (yet). I really like to specify my requirements ahead of time because doing so helps me see when I have too many "open" cases that are not yet tested.

Describe the solution you'd like

.todo functions should allow me to specify test cases without providing an implementation. Running deno test with .todo tests or suites should output the tests that are still todo in a group at the end to aid reading the test results.

Describe alternatives you've considered

using it.skip with a noop implementation. But that doesn't show me which tests are actually being skipped and which are still todo.

hesxenon avatar Aug 18 '24 12:08 hesxenon

I would try to solve this.

eryue0220 avatar Oct 30 '24 14:10 eryue0220

Deno's it tests use Deno.test internally, so matching Jest's behavior here might require changing Deno.test.

Considering https://github.com/denoland/deno/pull/29222 just merged, I would say it's worth opening an issue in that repo.

WWRS avatar May 10 '25 13:05 WWRS

@WWRS Great, I'll open another PR to support this change.

eryue0220 avatar May 27 '25 04:05 eryue0220