mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-04 12:15:21 -08:00
Add support for mocha-json
This commit is contained in:
24
reports/mocha/test/main.test.js
Normal file
24
reports/mocha/test/main.test.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const assert = require('assert').strict;
|
||||
const lib = require('../lib/main')
|
||||
|
||||
describe('Test 1', () => {
|
||||
it('Passing test', () => {
|
||||
assert.equal(true, true)
|
||||
});
|
||||
|
||||
describe('Test 1.1', () => {
|
||||
it('Failing test', () => {
|
||||
assert.equal(false, true)
|
||||
});
|
||||
|
||||
it('Exception in target unit', () => {
|
||||
lib.throwError();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('Test 2', () => {
|
||||
it('Exception in test', () => {
|
||||
throw new Error('Some error');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user