Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/test

Package Overview
Dependencies
Maintainers
1
Versions
352
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/test - npm Package Compare versions

Comparing version 0.0.56 to 0.0.57

2

package.json

@@ -30,3 +30,3 @@ {

},
"version": "0.0.56"
"version": "0.0.57"
}

@@ -8,10 +8,11 @@ import { TestEvent, EventPhase, EventEntity } from '../model';

onEvent(event: TestEvent) {
if (event.phase === 'after') {
if (event.type === 'test') {
if (event.test.error) {
event.test.error = serializeError(event.test.error);
const out = { ...event };
if (out.phase === 'after') {
if (out.type === 'test') {
if (out.test.error) {
out.test.error = serializeError(out.test.error);
}
} else if (event.type === 'assertion') {
if (event.assertion.error) {
event.assertion.error = serializeError(event.assertion.error);
} else if (out.type === 'assertion') {
if (out.assertion.error) {
out.assertion.error = serializeError(out.assertion.error);
}

@@ -21,4 +22,4 @@ }

this.send(event.type, event);
this.send(event.type, out);
}
}

@@ -349,3 +349,5 @@ import * as fs from 'fs';

for (const suite of suites) {
await this.executeSuite(consumer, suite);
if (suite.tests.length) {
await this.executeSuite(consumer, suite);
}
}

@@ -352,0 +354,0 @@ } else {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc