vitest 0.0.63 → 0.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
- import { R as ResolvedConfig, F as File, T as TaskResultPack, S as SnapshotResult, a as TestFactory, b as SuiteCollector, c as TestFunction, d as SuiteHooks, U as UserOptions } from './options-654578ef';
2
- export { C as CliOptions, g as ComputeMode, F as File, G as GlobalContext, H as HookListener, n as Reporter, R as ResolvedConfig, e as RunMode, o as SnapshotData, r as SnapshotMatchOptions, S as SnapshotResult, q as SnapshotStateOptions, t as SnapshotSummary, p as SnapshotUpdateState, j as Suite, b as SuiteCollector, d as SuiteHooks, l as Task, h as TaskBase, i as TaskResult, T as TaskResultPack, f as TaskState, k as Test, m as TestCollector, a as TestFactory, c as TestFunction, s as UncheckedSnapshot, U as UserOptions } from './options-654578ef';
1
+ import { R as ResolvedConfig, F as File, T as TaskResultPack, S as SnapshotResult, a as TestFactory, b as SuiteCollector, c as TestFunction, d as SuiteHooks, U as UserOptions } from './options-63a726fa';
2
+ export { u as Arrayable, A as Awaitable, C as CliOptions, g as ComputeMode, v as Environment, E as EnvironmentReturn, F as File, G as GlobalContext, H as HookListener, M as ModuleCache, N as Nullable, n as Reporter, R as ResolvedConfig, e as RunMode, o as SnapshotData, r as SnapshotMatchOptions, S as SnapshotResult, q as SnapshotStateOptions, t as SnapshotSummary, p as SnapshotUpdateState, j as Suite, b as SuiteCollector, d as SuiteHooks, l as Task, h as TaskBase, i as TaskResult, T as TaskResultPack, f as TaskState, k as Test, m as TestCollector, a as TestFactory, c as TestFunction, s as UncheckedSnapshot, U as UserOptions, V as VitestContext } from './options-63a726fa';
3
3
  import { MessagePort } from 'worker_threads';
4
4
  import { TransformResult } from 'vite';
5
- export { a as Environment, E as EnvironmentReturn, M as ModuleCache, V as VitestContext } from './general-39d52683';
6
5
  export { assert, default as chai, expect, should } from 'chai';
7
6
  import sinon from 'sinon';
8
7
  export { default as sinon } from 'sinon';
9
- import '@antfu/utils';
10
8
  import 'pretty-format';
11
9
 
12
10
  interface WorkerContext {
@@ -124,10 +122,10 @@ declare const it: {
124
122
  concurrent(name: string): void;
125
123
  };
126
124
  };
127
- declare const beforeAll: (fn: SuiteHooks['beforeAll'][0], timeout?: number) => void;
128
- declare const afterAll: (fn: SuiteHooks['afterAll'][0], timeout?: number) => void;
129
- declare const beforeEach: (fn: SuiteHooks['beforeEach'][0], timeout?: number) => void;
130
- declare const afterEach: (fn: SuiteHooks['afterEach'][0], timeout?: number) => void;
125
+ declare const beforeAll: (fn: SuiteHooks['beforeAll'][0], timeout?: number | undefined) => void;
126
+ declare const afterAll: (fn: SuiteHooks['afterAll'][0], timeout?: number | undefined) => void;
127
+ declare const beforeEach: (fn: SuiteHooks['beforeEach'][0], timeout?: number | undefined) => void;
128
+ declare const afterEach: (fn: SuiteHooks['afterEach'][0], timeout?: number | undefined) => void;
131
129
  declare function clearContext(): void;
132
130
 
133
131
  declare const mock: sinon.SinonMockStatic;
package/dist/index.js CHANGED
@@ -1 +1,46 @@
1
- import{assert,chai,expect,mock,should,sinon,spy,stub}from"./chunk-3P4SNPBT.js";import{afterAll,afterEach,beforeAll,beforeEach,clearContext,createSuiteHooks,defaultSuite,describe,it,suite,test}from"./chunk-3VLG4URE.js";import"./chunk-CNY47EZT.js";export{afterAll,afterEach,assert,beforeAll,beforeEach,chai,clearContext,createSuiteHooks,defaultSuite,describe,expect,it,mock,should,sinon,spy,stub,suite,test};
1
+ import {
2
+ assert,
3
+ chai,
4
+ expect,
5
+ mock,
6
+ should,
7
+ sinon,
8
+ spy,
9
+ stub
10
+ } from "./chunk-YPKHVZRP.js";
11
+ import {
12
+ afterAll,
13
+ afterEach,
14
+ beforeAll,
15
+ beforeEach,
16
+ clearContext,
17
+ createSuiteHooks,
18
+ defaultSuite,
19
+ describe,
20
+ it,
21
+ suite,
22
+ test
23
+ } from "./chunk-ANPMHBIF.js";
24
+ import "./chunk-APGELTDH.js";
25
+ import "./chunk-R2SMNEBL.js";
26
+ export {
27
+ afterAll,
28
+ afterEach,
29
+ assert,
30
+ beforeAll,
31
+ beforeEach,
32
+ chai,
33
+ clearContext,
34
+ createSuiteHooks,
35
+ defaultSuite,
36
+ describe,
37
+ expect,
38
+ it,
39
+ mock,
40
+ should,
41
+ sinon,
42
+ spy,
43
+ stub,
44
+ suite,
45
+ test
46
+ };
@@ -1,13 +1 @@
1
- import { V as VitestContext } from '../general-39d52683';
2
- import '@antfu/utils';
3
- import 'vite';
4
- import '../options-654578ef';
5
- import 'pretty-format';
6
1
 
7
- declare global {
8
- namespace NodeJS {
9
- interface Process {
10
- __vitest__: VitestContext;
11
- }
12
- }
13
- }