Print log file name on failure

This commit is contained in:
Franck Royer 2021-03-26 13:08:30 +11:00
parent 1d248351c1
commit a57f361b1e
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,12 @@ import { Message } from './waku_message';
import { CODEC, TOPIC } from './waku_relay'; import { CODEC, TOPIC } from './waku_relay';
describe('Waku Relay', () => { describe('Waku Relay', () => {
afterEach(function () {
if (this.currentTest!.state === 'failed') {
console.log(`Test failed, log file name is ${makeLogFileName(this)}`);
}
});
let waku1: Waku; let waku1: Waku;
let waku2: Waku; let waku2: Waku;
beforeEach(async function () { beforeEach(async function () {