mirror of https://github.com/nodejs/node.git
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);
|
|
});
|
|
});
|