vitest 0.1.16 → 0.1.17
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/cli.js +4 -4
- package/dist/{create-19f5d4a3.js → create-5f44770a.js} +3 -2
- package/dist/entry.js +2 -2
- package/dist/{global-da2bc74e.js → global-e5b6eef1.js} +3 -3
- package/dist/{index-e279d1cb.js → index-fb06fa81.js} +2 -2
- package/dist/index.d.ts +54 -60
- package/dist/index.js +2 -2
- package/dist/node.js +1 -1
- package/dist/{vi-2eed44f5.js → vi-b04d9662.js} +25 -2
- package/package.json +3 -3
package/dist/entry.js
CHANGED
|
@@ -7,7 +7,7 @@ import { a as commonjsRequire, c as commonjsGlobal } from './_commonjsHelpers-c9
|
|
|
7
7
|
import { c as index, a as relative } from './index-1964368a.js';
|
|
8
8
|
import { r as rpc } from './rpc-8c7cc374.js';
|
|
9
9
|
import { k as getCallLastIndex, s as slash, f as deepMerge, o as getNames, c, t as toArray, p as partitionSuiteChildren, q as hasTests, h as hasFailed, g as getFullName } from './index-f2daefb8.js';
|
|
10
|
-
import { f as format_1, h as getSerializers, j as equals, k as iterableEquality, l as subsetEquality, p as plugins_1, b as getState, m as isA, J as JestChaiExpect, n as clearContext, o as defaultSuite, q as setHooks, r as getHooks, u as context, s as setState, x as getFn, e as vi } from './vi-
|
|
10
|
+
import { f as format_1, h as getSerializers, j as equals, k as iterableEquality, l as subsetEquality, p as plugins_1, b as getState, m as isA, J as JestChaiExpect, n as clearContext, o as defaultSuite, q as setHooks, r as getHooks, u as context, s as setState, x as getFn, e as vi } from './vi-b04d9662.js';
|
|
11
11
|
import { m as getOriginalPos, n as posToNumber, l as parseStacktrace, u as unifiedDiff } from './diff-0d077da9.js';
|
|
12
12
|
import { performance as performance$1 } from 'perf_hooks';
|
|
13
13
|
import { createHash } from 'crypto';
|
|
@@ -1507,7 +1507,7 @@ async function setupGlobalEnv(config) {
|
|
|
1507
1507
|
setupConsoleLogSpy();
|
|
1508
1508
|
await setupChai();
|
|
1509
1509
|
if (config.global)
|
|
1510
|
-
(await import('./global-
|
|
1510
|
+
(await import('./global-e5b6eef1.js')).registerApiGlobally();
|
|
1511
1511
|
}
|
|
1512
1512
|
function setupConsoleLogSpy() {
|
|
1513
1513
|
const stdout = new Writable({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { g as globalApis } from './constants-de5287a6.js';
|
|
2
|
-
import { i as index } from './index-
|
|
2
|
+
import { i as index } from './index-fb06fa81.js';
|
|
3
3
|
import 'url';
|
|
4
4
|
import './index-1964368a.js';
|
|
5
5
|
import 'path';
|
|
6
|
-
import './vi-
|
|
6
|
+
import './vi-b04d9662.js';
|
|
7
7
|
import './index-f2daefb8.js';
|
|
8
8
|
import 'tty';
|
|
9
9
|
import 'local-pkg';
|
|
@@ -19,4 +19,4 @@ function registerApiGlobally() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export { registerApiGlobally };
|
|
22
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFsLWU1YjZlZWYxLmpzIiwic291cmNlcyI6WyIuLi9zcmMvaW50ZWdyYXRpb25zL2dsb2JhbC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBnbG9iYWxBcGlzIH0gZnJvbSAnLi4vY29uc3RhbnRzJ1xuaW1wb3J0ICogYXMgaW5kZXggZnJvbSAnLi4vaW5kZXgnXG5cbmV4cG9ydCBmdW5jdGlvbiByZWdpc3RlckFwaUdsb2JhbGx5KCkge1xuICBnbG9iYWxBcGlzLmZvckVhY2goKGFwaSkgPT4ge1xuICAgIC8vIEB0cy1leHBlY3QtZXJyb3IgSSBrbm93IHdoYXQgSSBhbSBkb2luZyA6UFxuICAgIGdsb2JhbFRoaXNbYXBpXSA9IGluZGV4W2FwaV1cbiAgfSlcbn1cbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUVPLFNBQVMsbUJBQW1CLEdBQUc7QUFDdEMsRUFBRSxVQUFVLENBQUMsT0FBTyxDQUFDLENBQUMsR0FBRyxLQUFLO0FBQzlCLElBQUksVUFBVSxDQUFDLEdBQUcsQ0FBQyxHQUFHLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNqQyxHQUFHLENBQUMsQ0FBQztBQUNMOzsifQ==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getCurrentSuite, w as withTimeout, a as getDefaultHookTimeout, b as getState, s as setState, c as suite, t as test, d as describe, i as it, v as vitest, e as vi } from './vi-
|
|
1
|
+
import { g as getCurrentSuite, w as withTimeout, a as getDefaultHookTimeout, b as getState, s as setState, c as suite, t as test, d as describe, i as it, v as vitest, e as vi } from './vi-b04d9662.js';
|
|
2
2
|
import chai, { assert, should } from 'chai';
|
|
3
3
|
import { s as spies, i as isMockFunction, a as spyOn, f as fn } from './jest-mock-113430de.js';
|
|
4
4
|
|
|
@@ -39,4 +39,4 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
export { afterAll as a, beforeAll as b, beforeEach as c, afterEach as d, expect as e, index as i };
|
|
42
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgtZmIwNmZhODEuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy9ydW50aW1lL2hvb2tzLnRzIiwiLi4vc3JjL2ludGVncmF0aW9ucy9jaGFpL2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgU3VpdGVIb29rcyB9IGZyb20gJy4uL3R5cGVzJ1xuaW1wb3J0IHsgZ2V0RGVmYXVsdEhvb2tUaW1lb3V0L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ZQUFZLEVBQUUsV0FBVyxDQUFDLEVBQUUsRUFBRSxPQUFPLElBQUkscUJBQXFCLEVBQUUsQ0FBQyxFQUFFO0FBQ3ZILE1BQUMsU0FBUyxHQUFHLENBQUMsRUFBRSxFQUFFLE9BQU8sS0FBSyxlQUFlLEVBQUUsQ0FBQyxFQUFFLENBQUMsV0FBVyxFQUFFLFdBQVcsQ0FBQyxFQUFFLEVBQUUsT0FBTyxJQUFJLHFCQUFxQixFQUFFLENBQUM7O0FDRjFILE1BQUMsTUFBTSxHQUFHLENBQUMsS0FBSyxFQUFFLE9BQU8sS0FBSztBQUNuQyxFQUFFLE1BQU0sRUFBRSxjQUFjLEVBQUUsR0FBRyxRQUFRLEVBQUUsQ0FBQztBQUN4QyxFQUFFLFFBQVEsQ0FBQyxFQUFFLGNBQWMsRUFBRSxjQUFjLEdBQUcsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNuRCxFQUFFLE9BQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsT0FBTyxDQUFDLENBQUM7QUFDckMsRUFBRTtBQUNGLE1BQU0sQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO0FBQzNCLE1BQU0sQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO0FBQzNCLE1BQU0sQ0FBQyxNQUFNLENBQUMsTUFBTSxFQUFFLElBQUksQ0FBQyxNQUFNLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==
|
package/dist/index.d.ts
CHANGED
|
@@ -219,20 +219,6 @@ declare class Anything extends AsymmetricMatcher<void> {
|
|
|
219
219
|
toString(): string;
|
|
220
220
|
toAsymmetricMatcher(): string;
|
|
221
221
|
}
|
|
222
|
-
declare class ObjectContaining extends AsymmetricMatcher<Record<string, unknown>> {
|
|
223
|
-
constructor(sample: Record<string, unknown>, inverse?: boolean);
|
|
224
|
-
getPrototype(obj: object): any;
|
|
225
|
-
hasProperty(obj: object | null, property: string): boolean;
|
|
226
|
-
asymmetricMatch(other: any): boolean;
|
|
227
|
-
toString(): string;
|
|
228
|
-
getExpectedType(): string;
|
|
229
|
-
}
|
|
230
|
-
declare class ArrayContaining extends AsymmetricMatcher<Array<unknown>> {
|
|
231
|
-
constructor(sample: Array<unknown>, inverse?: boolean);
|
|
232
|
-
asymmetricMatch(other: Array<unknown>): boolean;
|
|
233
|
-
toString(): string;
|
|
234
|
-
getExpectedType(): string;
|
|
235
|
-
}
|
|
236
222
|
declare class Any extends AsymmetricMatcher<any> {
|
|
237
223
|
constructor(sample: unknown);
|
|
238
224
|
fnNameFor(func: Function): string;
|
|
@@ -241,12 +227,6 @@ declare class Any extends AsymmetricMatcher<any> {
|
|
|
241
227
|
getExpectedType(): string;
|
|
242
228
|
toAsymmetricMatcher(): string;
|
|
243
229
|
}
|
|
244
|
-
declare class StringMatching extends AsymmetricMatcher<RegExp> {
|
|
245
|
-
constructor(sample: string | RegExp, inverse?: boolean);
|
|
246
|
-
asymmetricMatch(other: string): boolean;
|
|
247
|
-
toString(): string;
|
|
248
|
-
getExpectedType(): string;
|
|
249
|
-
}
|
|
250
230
|
|
|
251
231
|
interface StartOfSourceMap {
|
|
252
232
|
file?: string;
|
|
@@ -597,6 +577,9 @@ declare type Awaitable<T> = T | PromiseLike<T>;
|
|
|
597
577
|
declare type Nullable<T> = T | null | undefined;
|
|
598
578
|
declare type Arrayable<T> = T | Array<T>;
|
|
599
579
|
declare type ArgumentsType<T> = T extends (...args: infer U) => any ? U : never;
|
|
580
|
+
interface Constructable {
|
|
581
|
+
new (...args: any[]): any;
|
|
582
|
+
}
|
|
600
583
|
interface ModuleCache {
|
|
601
584
|
promise?: Promise<any>;
|
|
602
585
|
exports?: any;
|
|
@@ -1249,14 +1232,18 @@ declare module 'vite' {
|
|
|
1249
1232
|
}
|
|
1250
1233
|
}
|
|
1251
1234
|
interface AsymmetricMatchersContaining {
|
|
1252
|
-
stringContaining(expected: string):
|
|
1253
|
-
objectContaining(expected: any):
|
|
1254
|
-
arrayContaining(expected: unknown[]):
|
|
1255
|
-
stringMatching(expected: string | RegExp):
|
|
1235
|
+
stringContaining(expected: string): any;
|
|
1236
|
+
objectContaining(expected: any): any;
|
|
1237
|
+
arrayContaining(expected: unknown[]): any;
|
|
1238
|
+
stringMatching(expected: string | RegExp): any;
|
|
1256
1239
|
}
|
|
1240
|
+
declare type Promisify<O> = {
|
|
1241
|
+
[K in keyof O]: O[K] extends (...args: infer A) => infer R ? O extends R ? Promisify<O[K]> : (...args: A) => Promise<R> : O[K];
|
|
1242
|
+
};
|
|
1257
1243
|
declare global {
|
|
1258
1244
|
namespace Chai {
|
|
1259
1245
|
interface ExpectStatic extends AsymmetricMatchersContaining {
|
|
1246
|
+
<T>(actual: T, message?: string): VitestAssertion<T>;
|
|
1260
1247
|
extend(expects: MatchersObject): void;
|
|
1261
1248
|
assertions(expected: number): void;
|
|
1262
1249
|
hasAssertions(): void;
|
|
@@ -1267,21 +1254,28 @@ declare global {
|
|
|
1267
1254
|
setState(state: Partial<MatcherState>): void;
|
|
1268
1255
|
not: AsymmetricMatchersContaining;
|
|
1269
1256
|
}
|
|
1270
|
-
interface
|
|
1271
|
-
toMatchSnapshot
|
|
1257
|
+
interface JestAssertion<T = any> {
|
|
1258
|
+
toMatchSnapshot<U extends {
|
|
1259
|
+
[P in keyof T]: any;
|
|
1260
|
+
}>(snapshot: Partial<U>, message?: string): void;
|
|
1272
1261
|
toMatchSnapshot(message?: string): void;
|
|
1273
|
-
|
|
1262
|
+
matchSnapshot<U extends {
|
|
1263
|
+
[P in keyof T]: any;
|
|
1264
|
+
}>(snapshot: Partial<U>, message?: string): void;
|
|
1265
|
+
matchSnapshot(message?: string): void;
|
|
1266
|
+
toMatchInlineSnapshot<U extends {
|
|
1267
|
+
[P in keyof T]: any;
|
|
1268
|
+
}>(properties: Partial<U>, snapshot?: string, message?: string): void;
|
|
1274
1269
|
toMatchInlineSnapshot(snapshot?: string, message?: string): void;
|
|
1275
1270
|
toThrowErrorMatchingSnapshot(message?: string): void;
|
|
1276
1271
|
toThrowErrorMatchingInlineSnapshot(snapshot?: string, message?: string): void;
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
toBe(expected: any): void;
|
|
1272
|
+
toEqual<E>(expected: E): void;
|
|
1273
|
+
toStrictEqual<E>(expected: E): void;
|
|
1274
|
+
toBe<E>(expected: E): void;
|
|
1281
1275
|
toMatch(expected: string | RegExp): void;
|
|
1282
|
-
toMatchObject(expected:
|
|
1283
|
-
toContain(item:
|
|
1284
|
-
toContainEqual(item:
|
|
1276
|
+
toMatchObject<E extends {} | any[]>(expected: E): void;
|
|
1277
|
+
toContain<E>(item: E): void;
|
|
1278
|
+
toContainEqual<E>(item: E): void;
|
|
1285
1279
|
toBeTruthy(): void;
|
|
1286
1280
|
toBeFalsy(): void;
|
|
1287
1281
|
toBeGreaterThan(num: number): void;
|
|
@@ -1292,43 +1286,43 @@ declare global {
|
|
|
1292
1286
|
toBeUndefined(): void;
|
|
1293
1287
|
toBeNull(): void;
|
|
1294
1288
|
toBeDefined(): void;
|
|
1295
|
-
toBeInstanceOf(
|
|
1296
|
-
toBeCalledTimes(
|
|
1297
|
-
toHaveLength(
|
|
1298
|
-
toHaveProperty(
|
|
1289
|
+
toBeInstanceOf<E>(expected: E): void;
|
|
1290
|
+
toBeCalledTimes(times: number): void;
|
|
1291
|
+
toHaveLength(length: number): void;
|
|
1292
|
+
toHaveProperty<E>(property: string, value?: E): void;
|
|
1299
1293
|
toBeCloseTo(number: number, numDigits?: number): void;
|
|
1300
|
-
toHaveBeenCalledTimes(
|
|
1294
|
+
toHaveBeenCalledTimes(times: number): void;
|
|
1301
1295
|
toHaveBeenCalledOnce(): void;
|
|
1302
1296
|
toHaveBeenCalled(): void;
|
|
1303
1297
|
toBeCalled(): void;
|
|
1304
|
-
toHaveBeenCalledWith(...args:
|
|
1305
|
-
toBeCalledWith(...args:
|
|
1306
|
-
toHaveBeenNthCalledWith(n: number, ...args:
|
|
1307
|
-
nthCalledWith(
|
|
1308
|
-
toHaveBeenLastCalledWith(...args:
|
|
1309
|
-
lastCalledWith(...args:
|
|
1310
|
-
toThrow(expected?: string | RegExp): void;
|
|
1311
|
-
toThrowError(expected?: string | RegExp): void;
|
|
1298
|
+
toHaveBeenCalledWith<E extends any[]>(...args: E): void;
|
|
1299
|
+
toBeCalledWith<E extends any[]>(...args: E): void;
|
|
1300
|
+
toHaveBeenNthCalledWith<E extends any[]>(n: number, ...args: E): void;
|
|
1301
|
+
nthCalledWith<E extends any[]>(nthCall: number, ...args: E): void;
|
|
1302
|
+
toHaveBeenLastCalledWith<E extends any[]>(...args: E): void;
|
|
1303
|
+
lastCalledWith<E extends any[]>(...args: E): void;
|
|
1304
|
+
toThrow(expected?: string | Constructable | RegExp | Error): void;
|
|
1305
|
+
toThrowError(expected?: string | Constructable | RegExp | Error): void;
|
|
1312
1306
|
toReturn(): void;
|
|
1313
1307
|
toHaveReturned(): void;
|
|
1314
1308
|
toReturnTimes(times: number): void;
|
|
1315
1309
|
toHaveReturnedTimes(times: number): void;
|
|
1316
|
-
toReturnWith(value:
|
|
1317
|
-
toHaveReturnedWith(value:
|
|
1318
|
-
toHaveLastReturnedWith(value:
|
|
1319
|
-
lastReturnedWith(value:
|
|
1320
|
-
toHaveNthReturnedWith(nthCall: number, value:
|
|
1321
|
-
nthReturnedWith(nthCall: number, value:
|
|
1310
|
+
toReturnWith<E>(value: E): void;
|
|
1311
|
+
toHaveReturnedWith<E>(value: E): void;
|
|
1312
|
+
toHaveLastReturnedWith<E>(value: E): void;
|
|
1313
|
+
lastReturnedWith<E>(value: E): void;
|
|
1314
|
+
toHaveNthReturnedWith<E>(nthCall: number, value: E): void;
|
|
1315
|
+
nthReturnedWith<E>(nthCall: number, value: E): void;
|
|
1322
1316
|
}
|
|
1323
|
-
type
|
|
1324
|
-
[K in keyof
|
|
1317
|
+
type VitestifyAssertion<A> = {
|
|
1318
|
+
[K in keyof A]: A[K] extends Assertion ? VitestAssertion<any> : A[K] extends (...args: any[]) => any ? A[K] : VitestifyAssertion<A[K]>;
|
|
1325
1319
|
};
|
|
1326
|
-
interface
|
|
1327
|
-
resolves: Promisify<
|
|
1328
|
-
rejects: Promisify<
|
|
1329
|
-
chaiEqual(expected:
|
|
1320
|
+
interface VitestAssertion<T = any> extends VitestifyAssertion<Assertion>, JestAssertion<T> {
|
|
1321
|
+
resolves: Promisify<VitestAssertion<T>>;
|
|
1322
|
+
rejects: Promisify<VitestAssertion<T>>;
|
|
1323
|
+
chaiEqual<E>(expected: E): void;
|
|
1330
1324
|
}
|
|
1331
1325
|
}
|
|
1332
1326
|
}
|
|
1333
1327
|
|
|
1334
|
-
export { ApiConfig, ArgumentsType, Arrayable, Awaitable, BuiltinEnvironment, DoneCallback, EnhancedSpy, Environment, EnvironmentOptions, EnvironmentReturn, ErrorWithDiff, FetchFunction, File, HookListener, InlineConfig, JSDOMOptions, JestMockCompat, JestMockCompatContext, JestMockCompatFn, MaybeMocked, MaybeMockedConstructor, MaybeMockedDeep, MockWithArgs, MockedFunction, MockedFunctionDeep, MockedObject, MockedObjectDeep, ModuleCache, ModuleGraphData, Nullable, ParsedStack, Position, Reporter, ResolvedConfig, RunMode, RuntimeContext, SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, Suite, SuiteCollector, SuiteHooks, Task, TaskBase, TaskResult, TaskResultPack, TaskState, Test, TestCollector, TestFactory, TestFunction, TransformResultWithSource, UncheckedSnapshot, UserConfig, UserConsoleLog, WebSocketEvents, WebSocketHandlers, WorkerContext, WorkerRPC, afterAll, afterEach, beforeAll, beforeEach, describe, expect, fn, isMockFunction, it, spies, spyOn, suite, test, vi, vitest };
|
|
1328
|
+
export { ApiConfig, ArgumentsType, Arrayable, Awaitable, BuiltinEnvironment, Constructable, DoneCallback, EnhancedSpy, Environment, EnvironmentOptions, EnvironmentReturn, ErrorWithDiff, FetchFunction, File, HookListener, InlineConfig, JSDOMOptions, JestMockCompat, JestMockCompatContext, JestMockCompatFn, MaybeMocked, MaybeMockedConstructor, MaybeMockedDeep, MockWithArgs, MockedFunction, MockedFunctionDeep, MockedObject, MockedObjectDeep, ModuleCache, ModuleGraphData, Nullable, ParsedStack, Position, Reporter, ResolvedConfig, RunMode, RuntimeContext, SnapshotData, SnapshotMatchOptions, SnapshotResult, SnapshotStateOptions, SnapshotSummary, SnapshotUpdateState, Suite, SuiteCollector, SuiteHooks, Task, TaskBase, TaskResult, TaskResultPack, TaskState, Test, TestCollector, TestFactory, TestFunction, TransformResultWithSource, UncheckedSnapshot, UserConfig, UserConsoleLog, WebSocketEvents, WebSocketHandlers, WorkerContext, WorkerRPC, afterAll, afterEach, beforeAll, beforeEach, describe, expect, fn, isMockFunction, it, spies, spyOn, suite, test, vi, vitest };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { d as describe, i as it, c as suite, t as test, e as vi, v as vitest } from './vi-
|
|
2
|
-
export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './index-
|
|
1
|
+
export { d as describe, i as it, c as suite, t as test, e as vi, v as vitest } from './vi-b04d9662.js';
|
|
2
|
+
export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './index-fb06fa81.js';
|
|
3
3
|
export { f as fn, i as isMockFunction, s as spies, a as spyOn } from './jest-mock-113430de.js';
|
|
4
4
|
export { assert, default as chai, should } from 'chai';
|
|
5
5
|
import './index-f2daefb8.js';
|
package/dist/node.js
CHANGED