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/LICENSE +2 -1
- package/dist/chunk-5TNYWP3O.js +81 -0
- package/dist/chunk-ANPMHBIF.js +253 -0
- package/dist/chunk-APGELTDH.js +19 -0
- package/dist/chunk-R2SMNEBL.js +95 -0
- package/dist/chunk-VLGIKNLC.js +78 -0
- package/dist/chunk-XUIDSY4V.js +35 -0
- package/dist/chunk-YPKHVZRP.js +86 -0
- package/dist/global-PRFYLY7P.js +22 -0
- package/dist/index.d.ts +6 -8
- package/dist/index.js +46 -1
- package/dist/node/cli.d.ts +0 -12
- package/dist/node/cli.js +2609 -19
- package/dist/{options-654578ef.d.ts → options-63a726fa.d.ts} +46 -2
- package/dist/runtime/entry.d.ts +2 -2
- package/dist/runtime/entry.js +2535 -9
- package/dist/runtime/worker.d.ts +1 -3
- package/dist/runtime/worker.js +264 -4
- package/package.json +23 -23
- package/dist/chunk-3P4SNPBT.js +0 -1
- package/dist/chunk-3VLG4URE.js +0 -1
- package/dist/chunk-CNY47EZT.js +0 -1
- package/dist/chunk-H3VLV7UP.js +0 -1
- package/dist/general-39d52683.d.ts +0 -43
- package/dist/global-E2TE3466.js +0 -1
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-
|
|
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-
|
|
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{
|
|
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
|
+
};
|
package/dist/node/cli.d.ts
CHANGED
|
@@ -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
|
-
}
|