vitest 0.25.0 → 0.25.2

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.
Files changed (40) hide show
  1. package/dist/browser.d.ts +3 -3
  2. package/dist/browser.js +11 -11
  3. package/dist/{chunk-api-setup.a13c5f9d.js → chunk-api-setup.c5a9009c.js} +3 -3
  4. package/dist/{chunk-env-node.700b7e95.js → chunk-env-node.67948209.js} +8 -11
  5. package/dist/{chunk-install-pkg.55bfe508.js → chunk-install-pkg.579a5a27.js} +2 -2
  6. package/dist/chunk-integrations-globals.06c8d418.js +25 -0
  7. package/dist/{chunk-node-git.af5c9d73.js → chunk-node-git.5a1b1656.js} +3 -3
  8. package/dist/{chunk-runtime-chain.3b531731.js → chunk-runtime-chain.a0b441dc.js} +15 -8
  9. package/dist/{chunk-runtime-error.3cc15c6f.js → chunk-runtime-error.6287172c.js} +2 -2
  10. package/dist/{chunk-runtime-mocker.a5d87666.js → chunk-runtime-mocker.a5151f99.js} +4 -4
  11. package/dist/{chunk-runtime-rpc.4a2d45ab.js → chunk-runtime-rpc.1e7530d3.js} +2 -2
  12. package/dist/{chunk-runtime-setup.f644ac4c.js → chunk-runtime-setup.419ccdd8.js} +33 -20
  13. package/dist/{chunk-runtime-test-state.31ce8643.js → chunk-runtime-test-state.3cbc4575.js} +17 -4
  14. package/dist/{chunk-typecheck-constants.410fa7b2.js → chunk-typecheck-constants.4891f22f.js} +2 -2
  15. package/dist/{chunk-utils-env.7fe285cc.js → chunk-utils-env.03f840f2.js} +0 -0
  16. package/dist/{chunk-utils-source-map.1a66263d.js → chunk-utils-source-map.c6dfbbc1.js} +1 -1
  17. package/dist/{chunk-utils-timers.d1fcc6bb.js → chunk-utils-timers.06f993db.js} +1 -1
  18. package/dist/{chunk-vite-node-client.13ea0a59.js → chunk-vite-node-client.85cc7113.js} +3 -3
  19. package/dist/{chunk-vite-node-externalize.01d0d22c.js → chunk-vite-node-externalize.72a4d20b.js} +26 -26
  20. package/dist/{chunk-vite-node-utils.b89230f3.js → chunk-vite-node-utils.8f0b4a12.js} +1 -1
  21. package/dist/cli-wrapper.js +3 -3
  22. package/dist/cli.js +11 -11
  23. package/dist/config.d.ts +1 -1
  24. package/dist/entry.js +14 -13
  25. package/dist/environments.d.ts +1 -1
  26. package/dist/environments.js +1 -1
  27. package/dist/{index-b68b3c09.d.ts → index-2f5b6168.d.ts} +1 -1
  28. package/dist/index.d.ts +13 -4
  29. package/dist/index.js +8 -8
  30. package/dist/loader.js +3 -3
  31. package/dist/node.d.ts +2 -2
  32. package/dist/node.js +12 -12
  33. package/dist/suite.js +6 -6
  34. package/dist/{types-b3ff5eea.d.ts → types-f302dae9.d.ts} +20 -26
  35. package/dist/{vendor-index.16d769d7.js → vendor-index.737c3cff.js} +1 -1
  36. package/dist/{vendor-index.808a85a6.js → vendor-index.9c919048.js} +0 -0
  37. package/dist/{vendor-index.22806ffb.js → vendor-index.e1d4cf84.js} +0 -0
  38. package/dist/worker.js +8 -8
  39. package/package.json +4 -4
  40. package/dist/chunk-integrations-globals.391b3839.js +0 -25
package/dist/worker.js CHANGED
@@ -1,16 +1,16 @@
1
- import { b as resolve, e as distDir } from './chunk-utils-env.7fe285cc.js';
2
- import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-client.13ea0a59.js';
1
+ import { b as resolve, e as distDir } from './chunk-utils-env.03f840f2.js';
2
+ import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-client.85cc7113.js';
3
3
  import { workerId } from 'tinypool';
4
- import { g as getWorkerState } from './chunk-typecheck-constants.410fa7b2.js';
5
- import { e as executeInViteNode } from './chunk-runtime-mocker.a5d87666.js';
6
- import { r as rpc } from './chunk-runtime-rpc.4a2d45ab.js';
7
- import { p as processError } from './chunk-runtime-error.3cc15c6f.js';
4
+ import { g as getWorkerState } from './chunk-typecheck-constants.4891f22f.js';
5
+ import { e as executeInViteNode } from './chunk-runtime-mocker.a5151f99.js';
6
+ import { r as rpc } from './chunk-runtime-rpc.1e7530d3.js';
7
+ import { p as processError } from './chunk-runtime-error.6287172c.js';
8
8
  import 'tty';
9
9
  import 'url';
10
10
  import 'path';
11
11
  import 'module';
12
12
  import 'vm';
13
- import './chunk-vite-node-utils.b89230f3.js';
13
+ import './chunk-vite-node-utils.8f0b4a12.js';
14
14
  import 'fs';
15
15
  import 'acorn';
16
16
  import 'assert';
@@ -18,7 +18,7 @@ import 'util';
18
18
  import 'debug';
19
19
  import 'local-pkg';
20
20
  import 'vite';
21
- import './chunk-utils-timers.d1fcc6bb.js';
21
+ import './chunk-utils-timers.06f993db.js';
22
22
  import 'chai';
23
23
 
24
24
  let _viteNode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "0.25.0",
4
+ "version": "0.25.2",
5
5
  "description": "A blazing fast unit test framework powered by Vite",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -118,14 +118,14 @@
118
118
  "devDependencies": {
119
119
  "@antfu/install-pkg": "^0.1.1",
120
120
  "@edge-runtime/vm": "2.0.1",
121
- "@sinonjs/fake-timers": "^9.1.2",
121
+ "@sinonjs/fake-timers": "^10.0.0",
122
122
  "@types/diff": "^5.0.2",
123
123
  "@types/jsdom": "^20.0.0",
124
124
  "@types/micromatch": "^4.0.2",
125
125
  "@types/natural-compare": "^1.4.1",
126
126
  "@types/prompts": "^2.4.1",
127
127
  "@types/sinonjs__fake-timers": "^8.1.2",
128
- "@vitest/ui": "0.25.0",
128
+ "@vitest/ui": "0.25.2",
129
129
  "birpc": "^0.2.3",
130
130
  "cac": "^6.7.14",
131
131
  "chai-subset": "^1.6.0",
@@ -154,7 +154,7 @@
154
154
  "rollup": "^2.79.1",
155
155
  "strip-ansi": "^7.0.1",
156
156
  "typescript": "^4.8.4",
157
- "vite-node": "0.25.0",
157
+ "vite-node": "0.25.2",
158
158
  "ws": "^8.11.0"
159
159
  },
160
160
  "scripts": {
@@ -1,25 +0,0 @@
1
- import { m as globalApis } from './chunk-utils-env.7fe285cc.js';
2
- import { i as index } from './chunk-runtime-test-state.31ce8643.js';
3
- import 'tty';
4
- import 'url';
5
- import 'path';
6
- import './chunk-runtime-chain.3b531731.js';
7
- import 'util';
8
- import './chunk-typecheck-constants.410fa7b2.js';
9
- import 'local-pkg';
10
- import 'chai';
11
- import './vendor-_commonjsHelpers.addc3445.js';
12
- import './chunk-runtime-rpc.4a2d45ab.js';
13
- import './chunk-utils-timers.d1fcc6bb.js';
14
- import 'fs';
15
- import './chunk-utils-source-map.1a66263d.js';
16
- import './spy.js';
17
- import 'tinyspy';
18
-
19
- function registerApiGlobally() {
20
- globalApis.forEach((api) => {
21
- globalThis[api] = index[api];
22
- });
23
- }
24
-
25
- export { registerApiGlobally };