vitest
Advanced tools
Comparing version 0.34.3 to 0.34.4
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, suite, test } from '@vitest/runner'; | ||
export { e as bench, c as createExpect, d as expect, v as vi, f as vitest } from './vendor-vi.597d9e06.js'; | ||
export { e as bench, c as createExpect, d as expect, v as vi, f as vitest } from './vendor-vi.befc11a6.js'; | ||
export { i as isFirstRun, r as runOnce } from './vendor-run-once.3e5ef7d7.js'; | ||
import { d as dist } from './vendor-index.7178e7a2.js'; | ||
export { b as assertType, g as getRunningMode, a as isWatchMode } from './vendor-index.7178e7a2.js'; | ||
import { d as dist } from './vendor-index.e951dd92.js'; | ||
export { b as assertType, g as getRunningMode, a as isWatchMode } from './vendor-index.e951dd92.js'; | ||
import * as chai from 'chai'; | ||
@@ -7,0 +7,0 @@ export { chai }; |
export { startTests } from '@vitest/runner'; | ||
import { R as ResolvedConfig, C as CoverageOptions, a as CoverageProvider, b as CoverageProviderModule } from './reporters-2ff87305.js'; | ||
import { R as ResolvedConfig, C as CoverageOptions, a as CoverageProvider, b as CoverageProviderModule } from './reporters-cb94c88b.js'; | ||
import 'vite'; | ||
@@ -4,0 +4,0 @@ import 'vite-node'; |
@@ -16,3 +16,3 @@ export { startTests } from '@vitest/runner'; | ||
if (config.globals) | ||
(await import('./chunk-integrations-globals.7f4b17bf.js')).registerApiGlobally(); | ||
(await import('./chunk-integrations-globals.09bbbed7.js')).registerApiGlobally(); | ||
} | ||
@@ -19,0 +19,0 @@ function setupDefines(defines) { |
@@ -5,3 +5,3 @@ import { performance } from 'node:perf_hooks'; | ||
import { parseRegexp } from '@vitest/utils'; | ||
import { l as loadEnvironment } from './vendor-environments.8eb4d407.js'; | ||
import { l as loadEnvironment } from './vendor-environments.c9c96bf7.js'; | ||
import { s as startViteNode, m as moduleCache, a as mockMap } from './vendor-execute.a63e187f.js'; | ||
@@ -8,0 +8,0 @@ import { r as rpcDone, c as createSafeRpc } from './vendor-rpc.cbd8e972.js'; |
import { normalize } from 'pathe'; | ||
import cac from 'cac'; | ||
import c from 'picocolors'; | ||
import { v as version, s as startVitest } from './vendor-node.5ce5f335.js'; | ||
import { v as version, s as startVitest } from './vendor-node.b14cb9ad.js'; | ||
import './vendor-index.29282562.js'; | ||
@@ -51,3 +51,3 @@ import { d as divider } from './vendor-reporters.f6975b8d.js'; | ||
import 'strip-literal'; | ||
import './vendor-environments.8eb4d407.js'; | ||
import './vendor-environments.c9c96bf7.js'; | ||
import './vendor-index.0b5b3600.js'; | ||
@@ -54,0 +54,0 @@ import 'node:module'; |
import { UserConfig as UserConfig$1, ConfigEnv } from 'vite'; | ||
export { ConfigEnv, UserConfig, mergeConfig } from 'vite'; | ||
import { c as ResolvedCoverageOptions, U as UserConfig, d as CoverageV8Options, P as ProjectConfig } from './reporters-2ff87305.js'; | ||
import { c as ResolvedCoverageOptions, U as UserConfig, d as CoverageV8Options, P as ProjectConfig } from './reporters-cb94c88b.js'; | ||
import '@vitest/runner'; | ||
@@ -5,0 +5,0 @@ import 'vite-node'; |
@@ -1,2 +0,2 @@ | ||
import { B as BaseCoverageOptions, c as ResolvedCoverageOptions } from './reporters-2ff87305.js'; | ||
import { B as BaseCoverageOptions, c as ResolvedCoverageOptions } from './reporters-cb94c88b.js'; | ||
import 'vite'; | ||
@@ -3,0 +3,0 @@ import '@vitest/runner'; |
@@ -9,3 +9,3 @@ import { isatty } from 'node:tty'; | ||
import { g as getWorkerState } from './vendor-global.97e4527c.js'; | ||
import { i as index } from './vendor-index.7178e7a2.js'; | ||
import { i as index } from './vendor-index.e951dd92.js'; | ||
import { setupCommonEnv } from './browser.js'; | ||
@@ -18,3 +18,3 @@ import 'chai'; | ||
import './vendor-rpc.cbd8e972.js'; | ||
import './vendor-vi.597d9e06.js'; | ||
import './vendor-vi.befc11a6.js'; | ||
import '@vitest/runner/utils'; | ||
@@ -21,0 +21,0 @@ import './vendor-index.29282562.js'; |
import { performance } from 'node:perf_hooks'; | ||
import { startTests } from '@vitest/runner'; | ||
import './vendor-index.29282562.js'; | ||
import { d as globalExpect, r as resetModules, v as vi } from './vendor-vi.597d9e06.js'; | ||
import { d as globalExpect, r as resetModules, v as vi } from './vendor-vi.befc11a6.js'; | ||
import { s as startCoverageInsideWorker, a as stopCoverageInsideWorker } from './vendor-coverage.78040316.js'; | ||
@@ -11,3 +11,3 @@ import { V as VitestSnapshotEnvironment, s as setupChaiConfig, r as resolveTestRunner } from './vendor-index.9378c9a4.js'; | ||
import { setupColors, createColors, getSafeTimers } from '@vitest/utils'; | ||
import { i as index } from './vendor-index.7178e7a2.js'; | ||
import { i as index } from './vendor-index.e951dd92.js'; | ||
import { setupCommonEnv } from './browser.js'; | ||
@@ -54,2 +54,5 @@ import { g as getWorkerState } from './vendor-global.97e4527c.js'; | ||
_require.extensions[".less"] = () => ({}); | ||
process.env.SSR = ""; | ||
} else { | ||
process.env.SSR = "1"; | ||
} | ||
@@ -56,0 +59,0 @@ installSourcemapsSupport({ |
@@ -1,2 +0,2 @@ | ||
import { E as Environment } from './reporters-2ff87305.js'; | ||
import { E as Environment } from './reporters-cb94c88b.js'; | ||
import 'vite'; | ||
@@ -3,0 +3,0 @@ import '@vitest/runner'; |
@@ -1,2 +0,2 @@ | ||
export { e as builtinEnvironments, p as populateGlobal } from './vendor-environments.8eb4d407.js'; | ||
export { e as builtinEnvironments, p as populateGlobal } from './vendor-environments.c9c96bf7.js'; | ||
import 'node:url'; | ||
@@ -3,0 +3,0 @@ import 'pathe'; |
import vm from 'node:vm'; | ||
import { ViteNodeRunner } from 'vite-node/client'; | ||
import { ViteNodeRunnerOptions } from 'vite-node'; | ||
import { h as PendingSuiteMock, M as MockFactory, i as WorkerGlobalState, j as MockMap, k as RuntimeRPC } from './reporters-2ff87305.js'; | ||
import { h as PendingSuiteMock, M as MockFactory, i as WorkerGlobalState, j as MockMap, k as RuntimeRPC } from './reporters-cb94c88b.js'; | ||
import 'vite'; | ||
@@ -6,0 +6,0 @@ import '@vitest/runner'; |
import { Test, File, TaskResultPack, CancelReason } from '@vitest/runner'; | ||
export { DoneCallback, File, HookCleanupCallback, HookListener, OnTestFailedHandler, RunMode, RuntimeContext, SequenceHooks, SequenceSetupFiles, Suite, SuiteAPI, SuiteCollector, SuiteFactory, SuiteHooks, Task, TaskBase, TaskMeta, TaskResult, TaskResultPack, TaskState, Test, TestAPI, TestContext, TestFunction, TestOptions, afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, suite, test } from '@vitest/runner'; | ||
import { l as BenchmarkAPI, F as FakeTimerInstallOpts, m as MockFactoryWithHelper, n as RuntimeConfig, A as AfterSuiteRunMeta, o as UserConsoleLog, R as ResolvedConfig, p as ModuleGraphData, q as Reporter } from './reporters-2ff87305.js'; | ||
export { I as ApiConfig, a4 as ArgumentsType, a3 as Arrayable, a1 as Awaitable, B as BaseCoverageOptions, ai as BenchFunction, ag as Benchmark, ah as BenchmarkResult, af as BenchmarkUserOptions, y as BuiltinEnvironment, G as CSSModuleScopeStrategy, u as CollectLineNumbers, v as CollectLines, a6 as Constructable, x as Context, Z as ContextRPC, X as ContextTestEnvironment, ad as CoverageIstanbulOptions, C as CoverageOptions, a as CoverageProvider, b as CoverageProviderModule, ac as CoverageReporter, d as CoverageV8Options, ae as CustomProviderOptions, L as DepsOptimizationOptions, E as Environment, K as EnvironmentOptions, a8 as EnvironmentReturn, H as HappyDOMOptions, O as InlineConfig, J as JSDOMOptions, a7 as ModuleCache, a5 as MutableArray, a2 as Nullable, aa as OnServerRestartHandler, P as ProjectConfig, r as RawErrsMap, ab as ReportContext, $ as ResolveIdFunction, c as ResolvedCoverageOptions, Y as ResolvedTestEnvironment, w as RootAndTarget, S as RunnerRPC, k as RuntimeRPC, N as TransformModePatterns, t as TscErrorInfo, Q as TypecheckConfig, U as UserConfig, e as Vitest, z as VitestEnvironment, D as VitestPool, V as VitestRunMode, a9 as VmEnvironmentReturn, _ as WorkerContext, i as WorkerGlobalState, a0 as WorkerRPC } from './reporters-2ff87305.js'; | ||
import { l as BenchmarkAPI, F as FakeTimerInstallOpts, m as MockFactoryWithHelper, n as RuntimeConfig, A as AfterSuiteRunMeta, o as UserConsoleLog, R as ResolvedConfig, p as ModuleGraphData, q as Reporter } from './reporters-cb94c88b.js'; | ||
export { I as ApiConfig, a4 as ArgumentsType, a3 as Arrayable, a1 as Awaitable, B as BaseCoverageOptions, ai as BenchFunction, ag as Benchmark, ah as BenchmarkResult, af as BenchmarkUserOptions, y as BuiltinEnvironment, G as CSSModuleScopeStrategy, u as CollectLineNumbers, v as CollectLines, a6 as Constructable, x as Context, Z as ContextRPC, X as ContextTestEnvironment, ad as CoverageIstanbulOptions, C as CoverageOptions, a as CoverageProvider, b as CoverageProviderModule, ac as CoverageReporter, d as CoverageV8Options, ae as CustomProviderOptions, L as DepsOptimizationOptions, E as Environment, K as EnvironmentOptions, a8 as EnvironmentReturn, H as HappyDOMOptions, O as InlineConfig, J as JSDOMOptions, a7 as ModuleCache, a5 as MutableArray, a2 as Nullable, aa as OnServerRestartHandler, P as ProjectConfig, r as RawErrsMap, ab as ReportContext, $ as ResolveIdFunction, c as ResolvedCoverageOptions, Y as ResolvedTestEnvironment, w as RootAndTarget, S as RunnerRPC, k as RuntimeRPC, N as TransformModePatterns, t as TscErrorInfo, Q as TypecheckConfig, U as UserConfig, e as Vitest, z as VitestEnvironment, D as VitestPool, V as VitestRunMode, a9 as VmEnvironmentReturn, _ as WorkerContext, i as WorkerGlobalState, a0 as WorkerRPC } from './reporters-cb94c88b.js'; | ||
import { ExpectStatic } from '@vitest/expect'; | ||
@@ -354,3 +354,3 @@ export { Assertion, AsymmetricMatchersContaining, ExpectStatic, JestAssertion } from '@vitest/expect'; | ||
declare function getRunningMode(): "run" | "watch"; | ||
declare function getRunningMode(): "watch" | "run"; | ||
declare function isWatchMode(): boolean; | ||
@@ -357,0 +357,0 @@ |
export { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, suite, test } from '@vitest/runner'; | ||
export { e as bench, c as createExpect, d as expect, v as vi, f as vitest } from './vendor-vi.597d9e06.js'; | ||
export { e as bench, c as createExpect, d as expect, v as vi, f as vitest } from './vendor-vi.befc11a6.js'; | ||
export { i as isFirstRun, r as runOnce } from './vendor-run-once.3e5ef7d7.js'; | ||
import { d as dist } from './vendor-index.7178e7a2.js'; | ||
export { b as assertType, g as getRunningMode, a as isWatchMode } from './vendor-index.7178e7a2.js'; | ||
import { d as dist } from './vendor-index.e951dd92.js'; | ||
export { b as assertType, g as getRunningMode, a as isWatchMode } from './vendor-index.e951dd92.js'; | ||
import * as chai from 'chai'; | ||
@@ -7,0 +7,0 @@ export { chai }; |
@@ -1,3 +0,3 @@ | ||
import { V as VitestRunMode, U as UserConfig, e as Vitest, T as TestSequencer, W as WorkspaceSpec } from './reporters-2ff87305.js'; | ||
export { g as TestSequencerConstructor, f as VitestWorkspace, s as startVitest } from './reporters-2ff87305.js'; | ||
import { V as VitestRunMode, U as UserConfig, e as Vitest, T as TestSequencer, W as WorkspaceSpec } from './reporters-cb94c88b.js'; | ||
export { g as TestSequencerConstructor, f as VitestWorkspace, s as startVitest } from './reporters-cb94c88b.js'; | ||
import { UserConfig as UserConfig$1, Plugin } from 'vite'; | ||
@@ -4,0 +4,0 @@ import '@vitest/runner'; |
@@ -1,2 +0,2 @@ | ||
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor-node.5ce5f335.js'; | ||
export { B as BaseSequencer, V as VitestPlugin, c as createVitest, r as registerConsoleShortcuts, s as startVitest } from './vendor-node.b14cb9ad.js'; | ||
import 'pathe'; | ||
@@ -54,3 +54,3 @@ import 'vite'; | ||
import 'strip-literal'; | ||
import './vendor-environments.8eb4d407.js'; | ||
import './vendor-environments.c9c96bf7.js'; | ||
import './vendor-index.0b5b3600.js'; | ||
@@ -57,0 +57,0 @@ import 'node:assert'; |
@@ -1,2 +0,2 @@ | ||
export { as as BaseReporter, ak as BasicReporter, aw as BenchmarkBuiltinReporters, av as BenchmarkReportsMap, au as BuiltinReporters, aj as DefaultReporter, al as DotReporter, ar as HangingProcessReporter, ap as JUnitReporter, am as JsonReporter, q as Reporter, at as ReportersMap, aq as TapFlatReporter, ao as TapReporter, an as VerboseReporter } from './reporters-2ff87305.js'; | ||
export { as as BaseReporter, ak as BasicReporter, aw as BenchmarkBuiltinReporters, av as BenchmarkReportsMap, au as BuiltinReporters, aj as DefaultReporter, al as DotReporter, ar as HangingProcessReporter, ap as JUnitReporter, am as JsonReporter, q as Reporter, at as ReportersMap, aq as TapFlatReporter, ao as TapReporter, an as VerboseReporter } from './reporters-cb94c88b.js'; | ||
import 'vite'; | ||
@@ -3,0 +3,0 @@ import '@vitest/runner'; |
import { VitestRunner, VitestRunnerImportSource, Suite, Test, CancelReason, TestContext } from '@vitest/runner'; | ||
import { R as ResolvedConfig } from './reporters-2ff87305.js'; | ||
import { R as ResolvedConfig } from './reporters-cb94c88b.js'; | ||
import 'vite'; | ||
@@ -4,0 +4,0 @@ import 'vite-node'; |
import { setState, GLOBAL_EXPECT, getState } from '@vitest/expect'; | ||
import { g as getSnapshotClient, c as createExpect, v as vi, a as getBenchOptions, b as getBenchFn } from './vendor-vi.597d9e06.js'; | ||
import { g as getSnapshotClient, c as createExpect, v as vi, a as getBenchOptions, b as getBenchFn } from './vendor-vi.befc11a6.js'; | ||
import './vendor-index.29282562.js'; | ||
@@ -4,0 +4,0 @@ import { a as rpc } from './vendor-rpc.cbd8e972.js'; |
@@ -10,3 +10,3 @@ import { pathToFileURL } from 'node:url'; | ||
import { d as distDir } from './vendor-paths.84fc7a99.js'; | ||
import { l as loadEnvironment } from './vendor-environments.8eb4d407.js'; | ||
import { l as loadEnvironment } from './vendor-environments.c9c96bf7.js'; | ||
import { b as startVitestExecutor } from './vendor-execute.a63e187f.js'; | ||
@@ -13,0 +13,0 @@ import { createCustomConsole } from './chunk-runtime-console.ea222ffb.js'; |
@@ -5,3 +5,3 @@ import { performance } from 'node:perf_hooks'; | ||
import { g as getWorkerState } from './vendor-global.97e4527c.js'; | ||
import { l as loadEnvironment } from './vendor-environments.8eb4d407.js'; | ||
import { l as loadEnvironment } from './vendor-environments.c9c96bf7.js'; | ||
import { s as startViteNode, m as moduleCache, a as mockMap } from './vendor-execute.a63e187f.js'; | ||
@@ -8,0 +8,0 @@ import { s as setupInspect } from './vendor-inspector.47fc8cbb.js'; |
{ | ||
"name": "vitest", | ||
"type": "module", | ||
"version": "0.34.3", | ||
"version": "0.34.4", | ||
"description": "A blazing fast unit test framework powered by Vite", | ||
@@ -156,10 +156,10 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"tinypool": "^0.7.0", | ||
"vite": "^3.0.0 || ^4.0.0", | ||
"vite": "^3.1.0 || ^4.0.0 || ^5.0.0-0", | ||
"why-is-node-running": "^2.2.2", | ||
"@vitest/runner": "0.34.3", | ||
"@vitest/utils": "0.34.3", | ||
"vite-node": "0.34.3", | ||
"@vitest/expect": "0.34.3", | ||
"@vitest/snapshot": "0.34.3", | ||
"@vitest/spy": "0.34.3" | ||
"@vitest/runner": "0.34.4", | ||
"@vitest/snapshot": "0.34.4", | ||
"vite-node": "0.34.4", | ||
"@vitest/utils": "0.34.4", | ||
"@vitest/expect": "0.34.4", | ||
"@vitest/spy": "0.34.4" | ||
}, | ||
@@ -166,0 +166,0 @@ "devDependencies": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1410400
38226
74
+ Added@vitest/expect@0.34.4(transitive)
+ Added@vitest/runner@0.34.4(transitive)
+ Added@vitest/snapshot@0.34.4(transitive)
+ Added@vitest/spy@0.34.4(transitive)
+ Added@vitest/utils@0.34.4(transitive)
+ Addedvite-node@0.34.4(transitive)
- Removed@vitest/expect@0.34.3(transitive)
- Removed@vitest/runner@0.34.3(transitive)
- Removed@vitest/snapshot@0.34.3(transitive)
- Removed@vitest/spy@0.34.3(transitive)
- Removed@vitest/utils@0.34.3(transitive)
- Removedvite-node@0.34.3(transitive)
Updated@vitest/expect@0.34.4
Updated@vitest/runner@0.34.4
Updated@vitest/snapshot@0.34.4
Updated@vitest/spy@0.34.4
Updated@vitest/utils@0.34.4
Updatedvite-node@0.34.4