vitest 0.7.10 → 0.7.13
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 +35 -0
- package/dist/{chunk-api-setup.293836c1.js → chunk-api-setup.9251fc76.js} +5 -5
- package/dist/{chunk-constants.a717efa1.js → chunk-constants.6062c404.js} +2 -2
- package/dist/{chunk-defaults.720fd914.js → chunk-defaults.e5535971.js} +2 -2
- package/dist/{chunk-install-pkg.1d3b155f.js → chunk-install-pkg.7dd40977.js} +4 -4
- package/dist/{chunk-integrations-globals.06d5e380.js → chunk-integrations-globals.1039302d.js} +6 -6
- package/dist/chunk-runtime-chain.f873402e.js +7068 -0
- package/dist/{chunk-runtime-rpc.5f9e77bc.js → chunk-runtime-rpc.e8aa1ebe.js} +2 -2
- package/dist/chunk-utils-base.8408f73a.js +409 -0
- package/dist/{chunk-utils-path.bd53cafb.js → chunk-utils-path.a7442c7e.js} +4 -4
- package/dist/{chunk-utils-source-map.fb8852df.js → chunk-utils-timers.7bdeea22.js} +8 -3
- package/dist/chunk-vite-node-externalize.9c698857.js +13416 -0
- package/dist/chunk-vite-node-utils.194887b8.js +9135 -0
- package/dist/cli.js +8 -8
- package/dist/entry.js +17 -16
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/node.js +10 -10
- package/dist/vendor-index.87b2fc14.js +1111 -0
- package/dist/worker.js +5 -5
- package/package.json +10 -10
- package/dist/chunk-runtime-chain.7032872a.js +0 -7065
- package/dist/chunk-utils-base.8397dafe.js +0 -409
- package/dist/chunk-vite-node-externalize.9827cb2b.js +0 -10882
- package/dist/chunk-vite-node-utils.71f7ea0f.js +0 -9479
- package/dist/vendor-index.16e6622e.js +0 -1109
package/dist/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ interface MatcherState {
|
|
|
171
171
|
equals: (a: unknown, b: unknown, customTesters?: Array<Tester>, strictCheck?: boolean) => boolean;
|
|
172
172
|
expand?: boolean;
|
|
173
173
|
expectedAssertionsNumber?: number | null;
|
|
174
|
-
|
|
174
|
+
expectedAssertionsNumberErrorGen?: (() => Error) | null;
|
|
175
175
|
isExpectingAssertions?: boolean;
|
|
176
176
|
isExpectingAssertionsError?: Error | null;
|
|
177
177
|
isNot: boolean;
|
|
@@ -1122,7 +1122,7 @@ interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters'
|
|
|
1122
1122
|
|
|
1123
1123
|
declare type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never;
|
|
1124
1124
|
declare type ReturnType$1<T> = T extends (...args: any) => infer R ? R : never;
|
|
1125
|
-
|
|
1125
|
+
interface BirpcFn<T> {
|
|
1126
1126
|
/**
|
|
1127
1127
|
* Call the remote function and wait for the result.
|
|
1128
1128
|
*/
|
|
@@ -1131,7 +1131,7 @@ declare type BirpcFn<T> = {
|
|
|
1131
1131
|
* Send event without asking for response
|
|
1132
1132
|
*/
|
|
1133
1133
|
asEvent(...args: ArgumentsType<T>): void;
|
|
1134
|
-
}
|
|
1134
|
+
}
|
|
1135
1135
|
declare type BirpcReturn<RemoteFunctions> = {
|
|
1136
1136
|
[K in keyof RemoteFunctions]: BirpcFn<RemoteFunctions[K]>;
|
|
1137
1137
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { q as afterAll, w as afterEach, p as beforeAll, u as beforeEach, l as describe, x as expect, z as getRunningMode, o as isFirstRun, A as isWatchMode, m as it, n as runOnce, k as suite, t as test, v as vi, y as vitest } from './chunk-runtime-chain.
|
|
1
|
+
export { q as afterAll, w as afterEach, p as beforeAll, u as beforeEach, l as describe, x as expect, z as getRunningMode, o as isFirstRun, A as isWatchMode, m as it, n as runOnce, k as suite, t as test, v as vi, y as vitest } from './chunk-runtime-chain.f873402e.js';
|
|
2
2
|
export { fn, isMockFunction, spies, spyOn } from './jest-mock.js';
|
|
3
3
|
export { assert, default as chai, should } from 'chai';
|
|
4
4
|
import 'util';
|
|
5
|
-
import './chunk-utils-base.
|
|
5
|
+
import './chunk-utils-base.8408f73a.js';
|
|
6
6
|
import 'path';
|
|
7
7
|
import 'tty';
|
|
8
8
|
import 'local-pkg';
|
|
9
9
|
import './chunk-utils-global.7bcfa03c.js';
|
|
10
|
+
import './chunk-utils-timers.7bdeea22.js';
|
|
10
11
|
import './vendor-_commonjsHelpers.34b404ce.js';
|
|
11
|
-
import './chunk-runtime-rpc.
|
|
12
|
+
import './chunk-runtime-rpc.e8aa1ebe.js';
|
|
12
13
|
import 'fs';
|
|
13
|
-
import './chunk-utils-source-map.fb8852df.js';
|
|
14
14
|
import 'tinyspy';
|
|
15
15
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OyJ9
|
package/dist/node.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.
|
|
2
|
-
export { V as VitestRunner } from './chunk-utils-path.
|
|
1
|
+
export { V as VitestPlugin, c as createVitest, s as startVitest } from './chunk-vite-node-externalize.9c698857.js';
|
|
2
|
+
export { V as VitestRunner } from './chunk-utils-path.a7442c7e.js';
|
|
3
3
|
import 'buffer';
|
|
4
4
|
import 'path';
|
|
5
5
|
import 'child_process';
|
|
6
6
|
import 'process';
|
|
7
|
-
import './vendor-index.
|
|
7
|
+
import './vendor-index.87b2fc14.js';
|
|
8
8
|
import './vendor-_commonjsHelpers.34b404ce.js';
|
|
9
9
|
import 'fs';
|
|
10
|
-
import 'stream';
|
|
11
|
-
import 'util';
|
|
12
10
|
import 'assert';
|
|
13
11
|
import 'events';
|
|
12
|
+
import 'stream';
|
|
13
|
+
import 'util';
|
|
14
14
|
import 'url';
|
|
15
15
|
import 'os';
|
|
16
|
-
import './chunk-utils-base.
|
|
16
|
+
import './chunk-utils-base.8408f73a.js';
|
|
17
17
|
import 'tty';
|
|
18
18
|
import 'local-pkg';
|
|
19
19
|
import 'vite';
|
|
20
|
-
import './chunk-constants.
|
|
21
|
-
import './chunk-vite-node-utils.
|
|
20
|
+
import './chunk-constants.6062c404.js';
|
|
21
|
+
import './chunk-vite-node-utils.194887b8.js';
|
|
22
22
|
import 'module';
|
|
23
23
|
import 'vm';
|
|
24
|
-
import './chunk-defaults.
|
|
24
|
+
import './chunk-defaults.e5535971.js';
|
|
25
25
|
import 'perf_hooks';
|
|
26
|
-
import './chunk-utils-
|
|
26
|
+
import './chunk-utils-timers.7bdeea22.js';
|
|
27
27
|
import 'worker_threads';
|
|
28
28
|
import 'tinypool';
|
|
29
29
|
import './chunk-magic-string.d5e0e473.js';
|