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 4.0.2 to 4.0.3

16

package.json
{
"name": "@travetto/test",
"version": "4.0.2",
"version": "4.0.3",
"description": "Declarative test framework",

@@ -30,11 +30,11 @@ "keywords": [

"dependencies": {
"@travetto/base": "^4.0.1",
"@travetto/registry": "^4.0.2",
"@travetto/terminal": "^4.0.1",
"@travetto/worker": "^4.0.1",
"@travetto/yaml": "^4.0.1"
"@travetto/base": "^4.0.2",
"@travetto/registry": "^4.0.3",
"@travetto/terminal": "^4.0.2",
"@travetto/worker": "^4.0.2",
"@travetto/yaml": "^4.0.2"
},
"peerDependencies": {
"@travetto/cli": "^4.0.2",
"@travetto/transformer": "^4.0.1"
"@travetto/cli": "^4.0.4",
"@travetto/transformer": "^4.0.2"
},

@@ -41,0 +41,0 @@ "peerDependenciesMeta": {

@@ -1,2 +0,1 @@

import timers from 'node:timers/promises';
import { AssertionError } from 'node:assert';

@@ -48,3 +47,3 @@

process.env = env; // Restore
PromiseCapture.stop().then(() => timers.setTimeout(1).then(promCleanup.resolve), promCleanup.reject);
PromiseCapture.stop().then(() => Util.queueMacroTask().then(promCleanup.resolve), promCleanup.reject);
}

@@ -51,0 +50,0 @@ });

import { spawn } from 'node:child_process';
import { createReadStream } from 'node:fs';
import readline from 'node:readline';
import timers from 'node:timers/promises';
import { Env, ExecUtil, ShutdownManager } from '@travetto/base';
import { Env, ExecUtil, ShutdownManager, Util } from '@travetto/base';
import { IndexedFile, RuntimeIndex } from '@travetto/manifest';

@@ -17,3 +16,3 @@

static registerCleanup(scope: string): void {
ShutdownManager.onGracefulShutdown(() => timers.setTimeout(50), `test.${scope}.bufferOutput`);
ShutdownManager.onGracefulShutdown(() => Util.nonBlockingTimeout(50), `test.${scope}.bufferOutput`);
}

@@ -20,0 +19,0 @@

@@ -16,6 +16,2 @@ import { TimeSpan } from '@travetto/base';

/**
* An additional wait for triggering test runs, useful for code that takes time to warm up
*/
TRV_TEST_DELAY: TimeSpan | number;
/**
* Should the test break on the first line of debugging

@@ -22,0 +18,0 @@ */

import { createWriteStream } from 'node:fs';
import timers from 'node:timers/promises';
import { RuntimeContext } from '@travetto/manifest';
import { ConsoleManager, Env, TimeUtil } from '@travetto/base';
import { ConsoleManager, Env, TimeUtil, Util } from '@travetto/base';
import { ChildCommChannel } from '@travetto/worker';

@@ -53,3 +52,3 @@

await timers.setTimeout(TimeUtil.timeToMs('10m'));
await Util.nonBlockingTimeout(TimeUtil.timeToMs('10m'));
}

@@ -56,0 +55,0 @@

@@ -1,5 +0,1 @@

import timers from 'node:timers/promises';
import { Env } from '@travetto/base';
import type { RunState } from '../../src/execute/types';

@@ -17,4 +13,2 @@

await timers.setTimeout(Env.TRV_TEST_DELAY.time ?? 0);
try {

@@ -21,0 +15,0 @@ const res = await new Runner(opts).run();

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