node/test/fixtures/test-runner/todo_exit_code.js
Moshe Atlow 2258f22672
test_runner: fix todo inheritance
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>
2025-09-04 09:35:48 +00:00

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');
});
});