node/test/fixtures/test-runner/todo_exit_code.js

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