impress
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -9,6 +9,14 @@ 'use strict'; | ||
application.test.passed++; | ||
application.console.debug(`✅ Test ${event.data.name} passed`); | ||
const { name, details } = event.data; | ||
const duration = details['duration_ms']; | ||
application.console.debug(`✅ Passed: ${name} (${duration}ms)`); | ||
} else if (event.type === 'test:fail') { | ||
application.test.failed++; | ||
application.console.error(`❌ Test ${event.data.name} failed`); | ||
const { name, details } = event.data; | ||
const duration = details['duration_ms']; | ||
const { cause } = details.error; | ||
if (typeof cause !== 'string') { | ||
application.test.failed++; | ||
const msg = cause.stack; | ||
application.console.error(`❌ Failed: ${name} (${duration}ms)\n${msg}`); | ||
} | ||
} | ||
@@ -15,0 +23,0 @@ yield ''; |
{ | ||
"name": "impress", | ||
"version": "3.0.8", | ||
"version": "3.0.9", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Enterprise application server for Node.js", |
68456
1798