PR-URL: https://github.com/nodejs/node/pull/59721 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
21 lines
547 B
JavaScript
21 lines
547 B
JavaScript
const { describe, test } = require('node:test');
|
|
|
|
describe('suite should pass', () => {
|
|
test.todo('should fail without harming suite', () => {
|
|
throw new Error('Fail but not badly')
|
|
});
|
|
});
|
|
|
|
test.todo('should fail without effecting exit code', () => {
|
|
throw new Error('Fail but not badly')
|
|
});
|
|
|
|
test('empty string todo', { todo: '' }, () => {
|
|
throw new Error('Fail but not badly')
|
|
});
|
|
|
|
describe.todo('should inherit todo', () => {
|
|
test('should fail without harming suite', () => {
|
|
throw new Error('Fail but not badly');
|
|
});
|
|
});
|