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/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
- expectedAssertionsNumberError?: Error | null;
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
- declare type BirpcFn<T> = {
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.7032872a.js';
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.8397dafe.js';
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.5f9e77bc.js';
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.9827cb2b.js';
2
- export { V as VitestRunner } from './chunk-utils-path.bd53cafb.js';
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.16e6622e.js';
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.8397dafe.js';
16
+ import './chunk-utils-base.8408f73a.js';
17
17
  import 'tty';
18
18
  import 'local-pkg';
19
19
  import 'vite';
20
- import './chunk-constants.a717efa1.js';
21
- import './chunk-vite-node-utils.71f7ea0f.js';
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.720fd914.js';
24
+ import './chunk-defaults.e5535971.js';
25
25
  import 'perf_hooks';
26
- import './chunk-utils-source-map.fb8852df.js';
26
+ import './chunk-utils-timers.7bdeea22.js';
27
27
  import 'worker_threads';
28
28
  import 'tinypool';
29
29
  import './chunk-magic-string.d5e0e473.js';