Socket
Socket
Sign inDemoInstall

@vitest/runner

Package Overview
Dependencies
Maintainers
3
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/runner - npm Package Compare versions

Comparing version 1.0.0-beta.3 to 1.0.0-beta.4

dist/tasks-0309a91e.d.ts

9

./dist/index.js

@@ -108,3 +108,3 @@ import limit from 'p-limit';

if (usedProps.length)
fixture.deps = context.fixtures.filter(({ index, prop }) => index !== fixture.index && usedProps.includes(prop));
fixture.deps = context.fixtures.filter(({ prop }) => prop !== fixture.prop && usedProps.includes(prop));
}

@@ -114,3 +114,3 @@ });

}
const fixtureValueMap = /* @__PURE__ */ new Map();
const fixtureValueMaps = /* @__PURE__ */ new Map();
let cleanupFnArray = new Array();

@@ -133,4 +133,9 @@ async function callFixtureCleanup() {

return fn(context);
if (!fixtureValueMaps.get(context))
fixtureValueMaps.set(context, /* @__PURE__ */ new Map());
const fixtureValueMap = fixtureValueMaps.get(context);
const usedFixtures = fixtures.filter(({ prop }) => usedProps.includes(prop));
const pendingFixtures = resolveDeps(usedFixtures);
if (!pendingFixtures.length)
return fn(context);
let cursor = 0;

@@ -137,0 +142,0 @@ return new Promise((resolve, reject) => {

import { VitestRunner } from './types.js';
export { CancelReason, VitestRunnerConfig, VitestRunnerConstructor, VitestRunnerImportSource } from './types.js';
import { T as Task, F as File, d as SuiteAPI, e as TestAPI, f as SuiteCollector, g as CustomAPI, h as SuiteHooks, O as OnTestFailedHandler, a as Test, C as Custom } from './tasks-3ea70b32.js';
export { D as DoneCallback, E as ExtendedContext, q as Fixture, r as Fixtures, s as HookCleanupCallback, H as HookListener, I as InferFixturesTypes, R as RunMode, v as RuntimeContext, y as SequenceHooks, z as SequenceSetupFiles, S as Suite, u as SuiteFactory, j as TaskBase, x as TaskContext, t as TaskCustomOptions, l as TaskMeta, k as TaskPopulated, m as TaskResult, n as TaskResultPack, i as TaskState, w as TestContext, o as TestFunction, p as TestOptions } from './tasks-3ea70b32.js';
import { T as Task, F as File, d as SuiteAPI, e as TestAPI, f as SuiteCollector, g as CustomAPI, h as SuiteHooks, O as OnTestFailedHandler, a as Test, C as Custom } from './tasks-0309a91e.js';
export { D as DoneCallback, E as ExtendedContext, r as Fixture, q as FixtureFn, s as Fixtures, t as HookCleanupCallback, H as HookListener, I as InferFixturesTypes, R as RunMode, w as RuntimeContext, z as SequenceHooks, A as SequenceSetupFiles, S as Suite, v as SuiteFactory, j as TaskBase, y as TaskContext, u as TaskCustomOptions, l as TaskMeta, k as TaskPopulated, m as TaskResult, n as TaskResultPack, i as TaskState, x as TestContext, o as TestFunction, p as TestOptions, U as Use } from './tasks-0309a91e.js';
import { Awaitable } from '@vitest/utils';

@@ -6,0 +6,0 @@ export { processError } from '@vitest/utils/error';

@@ -108,3 +108,3 @@ import limit from 'p-limit';

if (usedProps.length)
fixture.deps = context.fixtures.filter(({ index, prop }) => index !== fixture.index && usedProps.includes(prop));
fixture.deps = context.fixtures.filter(({ prop }) => prop !== fixture.prop && usedProps.includes(prop));
}

@@ -114,3 +114,3 @@ });

}
const fixtureValueMap = /* @__PURE__ */ new Map();
const fixtureValueMaps = /* @__PURE__ */ new Map();
let cleanupFnArray = new Array();

@@ -133,4 +133,9 @@ async function callFixtureCleanup() {

return fn(context);
if (!fixtureValueMaps.get(context))
fixtureValueMaps.set(context, /* @__PURE__ */ new Map());
const fixtureValueMap = fixtureValueMaps.get(context);
const usedFixtures = fixtures.filter(({ prop }) => usedProps.includes(prop));
const pendingFixtures = resolveDeps(usedFixtures);
if (!pendingFixtures.length)
return fn(context);
let cursor = 0;

@@ -137,0 +142,0 @@ return new Promise((resolve, reject) => {

@@ -1,3 +0,3 @@

import { y as SequenceHooks, z as SequenceSetupFiles, F as File, k as TaskPopulated, S as Suite, n as TaskResultPack, a as Test, C as Custom, x as TaskContext, E as ExtendedContext } from './tasks-3ea70b32.js';
export { g as CustomAPI, D as DoneCallback, q as Fixture, r as Fixtures, s as HookCleanupCallback, H as HookListener, I as InferFixturesTypes, O as OnTestFailedHandler, R as RunMode, v as RuntimeContext, d as SuiteAPI, f as SuiteCollector, u as SuiteFactory, h as SuiteHooks, T as Task, j as TaskBase, t as TaskCustomOptions, l as TaskMeta, m as TaskResult, i as TaskState, e as TestAPI, w as TestContext, o as TestFunction, p as TestOptions } from './tasks-3ea70b32.js';
import { z as SequenceHooks, A as SequenceSetupFiles, F as File, k as TaskPopulated, S as Suite, n as TaskResultPack, a as Test, C as Custom, y as TaskContext, E as ExtendedContext } from './tasks-0309a91e.js';
export { g as CustomAPI, D as DoneCallback, r as Fixture, q as FixtureFn, s as Fixtures, t as HookCleanupCallback, H as HookListener, I as InferFixturesTypes, O as OnTestFailedHandler, R as RunMode, w as RuntimeContext, d as SuiteAPI, f as SuiteCollector, v as SuiteFactory, h as SuiteHooks, T as Task, j as TaskBase, u as TaskCustomOptions, l as TaskMeta, m as TaskResult, i as TaskState, e as TestAPI, x as TestContext, o as TestFunction, p as TestOptions, U as Use } from './tasks-0309a91e.js';
import '@vitest/utils';

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

import { S as Suite, T as Task, a as Test, C as Custom } from './tasks-3ea70b32.js';
export { b as ChainableFunction, c as createChainable } from './tasks-3ea70b32.js';
import { S as Suite, T as Task, a as Test, C as Custom } from './tasks-0309a91e.js';
export { b as ChainableFunction, c as createChainable } from './tasks-0309a91e.js';
import { Arrayable } from '@vitest/utils';

@@ -4,0 +4,0 @@

{
"name": "@vitest/runner",
"type": "module",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "Vitest test runner",

@@ -43,3 +43,3 @@ "license": "MIT",

"pathe": "^1.1.1",
"@vitest/utils": "1.0.0-beta.3"
"@vitest/utils": "1.0.0-beta.4"
},

@@ -46,0 +46,0 @@ "scripts": {

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