node/test/fixtures/test-runner/todo_exit_code.js
Moshe Atlow a955c534a8 test_runner: dont set exit code on todo tests
PR-URL: https://github.com/nodejs/node/pull/48929
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2023-07-29 20:45:16 +00:00

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