mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
23 lines
433 B
JavaScript
23 lines
433 B
JavaScript
const lib = require('../lib/main')
|
|
|
|
describe('Test 1', () => {
|
|
test('Passing test', () => {
|
|
expect(true).toBeTruthy()
|
|
});
|
|
|
|
describe('Test 1.1', () => {
|
|
test('Failing test', () => {
|
|
expect(false).toBeTruthy()
|
|
});
|
|
|
|
test('Exception in target unit', () => {
|
|
lib.throwError();
|
|
});
|
|
});
|
|
});
|
|
|
|
describe('Test 2', () => {
|
|
test('Exception in test', () => {
|
|
throw new Error('Some error');
|
|
});
|
|
});
|