mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
7d28de9a79
PR-URL: https://github.com/nodejs/node/pull/55757 Refs: https://github.com/nodejs/node/issues/55723 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
12 lines
349 B
JavaScript
12 lines
349 B
JavaScript
const { test } = require('node:test');
|
|
|
|
test('should pass', () => {});
|
|
test('should fail', () => { throw new Error('fail'); });
|
|
test('should skip', { skip: true }, () => {});
|
|
test('parent', (t) => {
|
|
t.test('should fail', () => { throw new Error('fail'); });
|
|
t.test('should pass but parent fail', (t, done) => {
|
|
setImmediate(done);
|
|
});
|
|
});
|