vitest 0.0.121 → 0.0.122
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.md +2 -2
- package/dist/cli.js +1 -1
- package/dist/entry.js +28 -2329
- package/dist/{global-f5814404.js → global-71c4f178.js} +2 -2
- package/dist/{index-32bc2073.js → index-3cd686b2.js} +1 -1
- package/dist/index.d.ts +52 -49
- package/dist/index.js +2 -2
- package/dist/vi-c99184a5.js +3445 -0
- package/package.json +1 -1
- package/dist/vi-db2bc738.js +0 -1122
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { g as globalApis } from './constants-22bbd600.js';
|
|
2
|
-
import { i as index } from './index-
|
|
2
|
+
import { i as index } from './index-3cd686b2.js';
|
|
3
3
|
import 'url';
|
|
4
4
|
import './index-090545ef.js';
|
|
5
5
|
import 'tty';
|
|
6
6
|
import 'local-pkg';
|
|
7
7
|
import 'path';
|
|
8
|
-
import './vi-
|
|
8
|
+
import './vi-c99184a5.js';
|
|
9
9
|
import './_commonjsHelpers-c9e3b764.js';
|
|
10
10
|
import './jest-mock-038a01b3.js';
|
|
11
11
|
import 'chai';
|
|
@@ -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-c99184a5.js';
|
|
2
2
|
import chai, { assert, should } from 'chai';
|
|
3
3
|
import { s as spies, a as spyOn, f as fn } from './jest-mock-038a01b3.js';
|
|
4
4
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { OptionsReceived, Plugin } from 'pretty-format';
|
|
1
2
|
import { Formatter } from 'picocolors/types';
|
|
2
3
|
import { ViteDevServer } from 'vite';
|
|
3
4
|
import { RawSourceMap } from 'source-map-js';
|
|
4
|
-
import { OptionsReceived } from 'pretty-format';
|
|
5
5
|
import { MessagePort } from 'worker_threads';
|
|
6
6
|
import { SpyImpl } from 'tinyspy';
|
|
7
7
|
export { Spy, SpyFn } from 'tinyspy';
|
|
@@ -912,56 +912,59 @@ declare global {
|
|
|
912
912
|
hasAssertions(): void;
|
|
913
913
|
anything(): Anything;
|
|
914
914
|
any(constructor: unknown): Any;
|
|
915
|
+
addSnapshotSerializer(plugin: Plugin): void;
|
|
915
916
|
not: AsymmetricMatchersContaining;
|
|
916
917
|
}
|
|
917
|
-
interface JestAssertions
|
|
918
|
-
toMatchSnapshot(message?: string):
|
|
919
|
-
toMatchInlineSnapshot(snapshot?: string, message?: string):
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
918
|
+
interface JestAssertions {
|
|
919
|
+
toMatchSnapshot(message?: string): void;
|
|
920
|
+
toMatchInlineSnapshot(snapshot?: string, message?: string): void;
|
|
921
|
+
toThrowErrorMatchingSnapshot(message?: string): void;
|
|
922
|
+
toThrowErrorMatchingInlineSnapshot(snapshot?: string, message?: string): void;
|
|
923
|
+
matchSnapshot(message?: string): void;
|
|
924
|
+
toEqual(expected: any): void;
|
|
925
|
+
toStrictEqual(expected: any): void;
|
|
926
|
+
toBe(expected: any): void;
|
|
927
|
+
toMatch(expected: string | RegExp): void;
|
|
928
|
+
toMatchObject(expected: any): void;
|
|
929
|
+
toContain(item: any): void;
|
|
930
|
+
toContainEqual(item: any): void;
|
|
931
|
+
toBeTruthy(): void;
|
|
932
|
+
toBeFalsy(): void;
|
|
933
|
+
toBeGreaterThan(num: number): void;
|
|
934
|
+
toBeGreaterThanOrEqual(num: number): void;
|
|
935
|
+
toBeLessThan(num: number): void;
|
|
936
|
+
toBeLessThanOrEqual(num: number): void;
|
|
937
|
+
toBeNaN(): void;
|
|
938
|
+
toBeUndefined(): void;
|
|
939
|
+
toBeNull(): void;
|
|
940
|
+
toBeDefined(): void;
|
|
941
|
+
toBeInstanceOf(c: any): void;
|
|
942
|
+
toBeCalledTimes(n: number): void;
|
|
943
|
+
toHaveLength(l: number): void;
|
|
944
|
+
toHaveProperty(p: string, value?: any): void;
|
|
945
|
+
toBeCloseTo(number: number, numDigits?: number): void;
|
|
946
|
+
toHaveBeenCalledTimes(n: number): void;
|
|
947
|
+
toHaveBeenCalledOnce(): void;
|
|
948
|
+
toHaveBeenCalled(): void;
|
|
949
|
+
toBeCalled(): void;
|
|
950
|
+
toHaveBeenCalledWith(...args: any[]): void;
|
|
951
|
+
toBeCalledWith(...args: any[]): void;
|
|
952
|
+
toHaveBeenNthCalledWith(n: number, ...args: any[]): void;
|
|
953
|
+
nthCalledWith(n: number, ...args: any[]): void;
|
|
954
|
+
toHaveBeenLastCalledWith(...args: any[]): void;
|
|
955
|
+
lastCalledWith(...args: any[]): void;
|
|
956
|
+
toThrow(expected?: string | RegExp): void;
|
|
957
|
+
toThrowError(expected?: string | RegExp): void;
|
|
958
|
+
toReturn(): void;
|
|
959
|
+
toHaveReturned(): void;
|
|
960
|
+
toReturnTimes(times: number): void;
|
|
961
|
+
toHaveReturnedTimes(times: number): void;
|
|
962
|
+
toReturnWith(value: any): void;
|
|
963
|
+
toHaveReturnedWith(value: any): void;
|
|
964
|
+
toHaveLastReturnedWith(value: any): void;
|
|
965
|
+
lastReturnedWith(value: any): void;
|
|
966
|
+
toHaveNthReturnedWith(nthCall: number, value: any): void;
|
|
967
|
+
nthReturnedWith(nthCall: number, value: any): void;
|
|
965
968
|
}
|
|
966
969
|
type Promisify<O> = {
|
|
967
970
|
[K in keyof O]: O[K] extends (...args: infer A) => infer R ? O extends R ? Promisify<O[K]> : (...args: A) => Promise<R> : O[K];
|
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-c99184a5.js';
|
|
2
|
+
export { a as afterAll, d as afterEach, b as beforeAll, c as beforeEach, e as expect } from './index-3cd686b2.js';
|
|
3
3
|
export { f as fn, s as spies, a as spyOn } from './jest-mock-038a01b3.js';
|
|
4
4
|
export { assert, default as chai, should } from 'chai';
|
|
5
5
|
import './index-090545ef.js';
|