Create `it.todo` in mocha

ilumin

Lumin

Posted on November 2, 2021

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

💖 💪 🙅 🚩
ilumin
Lumin

Posted on November 2, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related