From a57f361b1e4e15e57c33f34568f8cbbe89d82563 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 26 Mar 2021 13:08:30 +1100 Subject: [PATCH] Print log file name on failure --- src/lib/waku_relay.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/waku_relay.spec.ts b/src/lib/waku_relay.spec.ts index 7bbe541ba2..ba1d02a86d 100644 --- a/src/lib/waku_relay.spec.ts +++ b/src/lib/waku_relay.spec.ts @@ -10,6 +10,12 @@ import { Message } from './waku_message'; import { CODEC, TOPIC } from './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 waku2: Waku; beforeEach(async function () {