vitest 0.12.8 → 0.13.0

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 (23) hide show
  1. package/dist/{chunk-api-setup.9ccd19b5.js → chunk-api-setup.554e8dcb.js} +107 -51
  2. package/dist/{chunk-constants.3570739f.js → chunk-constants.d60bb984.js} +1 -1
  3. package/dist/{chunk-defaults.7d81a6ca.js → chunk-defaults.c11f632f.js} +1 -1
  4. package/dist/{chunk-install-pkg.fd8d1022.js → chunk-install-pkg.8a034cf6.js} +1 -1
  5. package/dist/{chunk-integrations-globals.23cc66c3.js → chunk-integrations-globals.f7036c09.js} +7 -7
  6. package/dist/{chunk-runtime-chain.5021a6b6.js → chunk-runtime-chain.db87de48.js} +21 -10
  7. package/dist/{chunk-runtime-mocker.d26f8110.js → chunk-runtime-mocker.8436db18.js} +3 -3
  8. package/dist/chunk-runtime-rpc.6e6614a9.js +15 -0
  9. package/dist/{chunk-utils-global.2fab7e5c.js → chunk-utils-global.b9f8edf8.js} +34 -2
  10. package/dist/{chunk-utils-timers.da6ac0a6.js → chunk-utils-source-map.ded50c88.js} +14 -11
  11. package/dist/{chunk-vite-node-externalize.fc385bba.js → chunk-vite-node-externalize.0094db73.js} +8740 -8741
  12. package/dist/{chunk-vite-node-utils.46e2a803.js → chunk-vite-node-utils.6856b365.js} +1 -1
  13. package/dist/cli.js +16 -16
  14. package/dist/entry.js +6 -6
  15. package/dist/index.d.ts +61 -10
  16. package/dist/index.js +4 -4
  17. package/dist/node.d.ts +56 -0
  18. package/dist/node.js +20 -20
  19. package/dist/{vendor-entry.ca05c118.js → vendor-entry.6072d652.js} +11 -11
  20. package/dist/{vendor-index.6c69a0a8.js → vendor-index.42fcc02c.js} +407 -407
  21. package/dist/worker.js +5 -5
  22. package/package.json +37 -37
  23. package/dist/chunk-runtime-rpc.47bae3f9.js +0 -7
package/dist/worker.js CHANGED
@@ -1,8 +1,8 @@
1
- import { h as resolve, a as getWorkerState } from './chunk-utils-global.2fab7e5c.js';
2
- import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.46e2a803.js';
3
- import { d as distDir } from './chunk-constants.3570739f.js';
4
- import { e as executeInViteNode } from './chunk-runtime-mocker.d26f8110.js';
5
- import { r as rpc } from './chunk-runtime-rpc.47bae3f9.js';
1
+ import { l as resolve, a as getWorkerState } from './chunk-utils-global.b9f8edf8.js';
2
+ import { c as createBirpc, M as ModuleCacheMap } from './chunk-vite-node-utils.6856b365.js';
3
+ import { d as distDir } from './chunk-constants.d60bb984.js';
4
+ import { e as executeInViteNode } from './chunk-runtime-mocker.8436db18.js';
5
+ import { r as rpc } from './chunk-runtime-rpc.6e6614a9.js';
6
6
  import 'tty';
7
7
  import 'local-pkg';
8
8
  import 'path';
package/package.json CHANGED
@@ -1,32 +1,29 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "0.12.8",
4
+ "version": "0.13.0",
5
5
  "description": "A blazing fast unit test framework powered by Vite",
6
+ "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
+ "license": "MIT",
8
+ "funding": "https://github.com/sponsors/antfu",
9
+ "homepage": "https://github.com/vitest-dev/vitest#readme",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/vitest-dev/vitest.git"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/vitest-dev/vitest/issues"
16
+ },
6
17
  "keywords": [
7
18
  "vite",
8
19
  "vite-node",
9
20
  "test",
10
21
  "jest"
11
22
  ],
12
- "homepage": "https://github.com/vitest-dev/vitest#readme",
13
- "bugs": {
14
- "url": "https://github.com/vitest-dev/vitest/issues"
15
- },
16
- "license": "MIT",
17
- "author": "Anthony Fu <anthonyfu117@hotmail.com>",
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/vitest-dev/vitest.git"
21
- },
22
- "funding": "https://github.com/sponsors/antfu",
23
- "main": "./dist/index.js",
24
- "module": "./dist/index.js",
25
- "types": "./dist/index.d.ts",
26
23
  "exports": {
27
24
  ".": {
28
- "import": "./dist/index.js",
29
- "types": "./dist/index.d.ts"
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js"
30
27
  },
31
28
  "./*": "./*",
32
29
  "./globals": {
@@ -36,23 +33,29 @@
36
33
  "types": "./importMeta.d.ts"
37
34
  },
38
35
  "./node": {
39
- "import": "./dist/node.js",
40
- "types": "./dist/node.d.ts"
36
+ "types": "./dist/node.d.ts",
37
+ "import": "./dist/node.js"
41
38
  },
42
39
  "./config": {
40
+ "types": "./config.d.ts",
43
41
  "import": "./dist/config.js",
44
- "require": "./dist/config.cjs",
45
- "types": "./config.d.ts"
42
+ "require": "./dist/config.cjs"
46
43
  }
47
44
  },
45
+ "main": "./dist/index.js",
46
+ "module": "./dist/index.js",
47
+ "types": "./dist/index.d.ts",
48
+ "bin": {
49
+ "vitest": "./vitest.mjs"
50
+ },
48
51
  "files": [
49
52
  "dist",
50
53
  "bin",
51
54
  "*.d.ts",
52
55
  "*.mjs"
53
56
  ],
54
- "bin": {
55
- "vitest": "./vitest.mjs"
57
+ "engines": {
58
+ "node": ">=v14.16.0"
56
59
  },
57
60
  "peerDependencies": {
58
61
  "@vitest/ui": "*",
@@ -82,7 +85,7 @@
82
85
  "local-pkg": "^0.4.1",
83
86
  "tinypool": "^0.1.3",
84
87
  "tinyspy": "^0.3.2",
85
- "vite": "^2.9.8"
88
+ "vite": "^2.9.9"
86
89
  },
87
90
  "devDependencies": {
88
91
  "@antfu/install-pkg": "^0.1.0",
@@ -91,21 +94,21 @@
91
94
  "@types/jsdom": "^16.2.14",
92
95
  "@types/micromatch": "^4.0.2",
93
96
  "@types/natural-compare": "^1.4.1",
94
- "@types/node": "^17.0.33",
97
+ "@types/node": "^17.0.35",
95
98
  "@types/prompts": "^2.4.0",
96
99
  "@types/sinonjs__fake-timers": "^8.1.2",
97
- "@vitest/ui": "0.12.8",
98
- "birpc": "^0.2.2",
99
- "c8": "^7.11.2",
100
+ "@vitest/ui": "0.13.0",
101
+ "birpc": "^0.2.3",
102
+ "c8": "^7.11.3",
100
103
  "cac": "^6.7.12",
101
104
  "chai-subset": "^1.6.0",
102
105
  "cli-truncate": "^3.1.0",
103
- "diff": "^5.0.0",
106
+ "diff": "^5.1.0",
104
107
  "execa": "^6.1.0",
105
108
  "fast-glob": "^3.2.11",
106
109
  "find-up": "^6.3.0",
107
110
  "flatted": "^3.2.5",
108
- "happy-dom": "^3.2.0",
111
+ "happy-dom": "^4.1.0",
109
112
  "jsdom": "^19.0.0",
110
113
  "log-update": "^5.0.1",
111
114
  "magic-string": "^0.26.2",
@@ -117,15 +120,12 @@
117
120
  "pkg-types": "^0.3.2",
118
121
  "pretty-format": "^27.5.1",
119
122
  "prompts": "^2.4.2",
120
- "rollup": "^2.73.0",
123
+ "rollup": "^2.74.1",
121
124
  "source-map-js": "^1.0.2",
122
125
  "strip-ansi": "^7.0.1",
123
- "typescript": "^4.6.4",
124
- "vite-node": "0.12.8",
125
- "ws": "^8.6.0"
126
- },
127
- "engines": {
128
- "node": ">=v14.16.0"
126
+ "typescript": "^4.7.2",
127
+ "vite-node": "0.13.0",
128
+ "ws": "^8.7.0"
129
129
  },
130
130
  "scripts": {
131
131
  "build": "rimraf dist && rollup -c",
@@ -1,7 +0,0 @@
1
- import { a as getWorkerState } from './chunk-utils-global.2fab7e5c.js';
2
-
3
- const rpc = () => {
4
- return getWorkerState().rpc;
5
- };
6
-
7
- export { rpc as r };