mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-04 04:05:22 -08:00
Add jest-junit fixture project
This commit is contained in:
23
reports/jest/__tests__/main.test.js
Normal file
23
reports/jest/__tests__/main.test.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user