Skip to main content

method TestContext.prototype.todo

#TestContext.prototype.todo(message?: string): void

This function adds a TODO directive to the test's output. If message is provided, it is included in the output. Calling todo() does not terminate execution of the test function. This function does not return a value.

test('top level test', (t) => {
  // This test is marked as `TODO`
  t.todo('this is a todo');
});

Parameters #

#message: string
optional

Optional TODO message.

Return Type #

void

你找到了你需要的东西吗?

隐私政策