DEV Community

Teerasak Vichadee
Teerasak Vichadee

Posted on

Create `it.todo` in mocha

As I mention in early post, I've been working on legacy project lately and always found an oldschool pattern and old library.

Again in mocha, I've face an error it.todo is not a function ... Come on! Are you serious!

Let's not angry with some small error, the solution is just use it without function, that test case will become pending or "todo" in Jest universe.

Ref: https://github.com/mochajs/mocha/issues/1510#issuecomment-142481408

Top comments (2)

Collapse
 
crazyoptimist profile image
crazyoptimist

Thanks for sharing!

Collapse
 
radandevist profile image
Andrianarisoa Daniel

Sure, thank you.