context.todo([message])
message<string> 可选TODO消息,将显示在 TAP 输出中。
此函数会向测试的输出中添加一个 TODO 指令。如果提供了 message,它将包含在 TAP 输出中。调用 todo() 不会终止测试函数的执行。此函数不返回任何值。
【This function adds a TODO directive to the test's output. If message is
provided, it is included in the TAP 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');
});