vitest 1.2.1 → 1.3.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 (56) hide show
  1. package/LICENSE.md +29 -0
  2. package/dist/browser.d.ts +3 -2
  3. package/dist/browser.js +2 -1
  4. package/dist/chunks/{api-setup.omeaEsoT.js → api-setup.Xh60JpeM.js} +27 -64
  5. package/dist/chunks/{integrations-globals.9QpVy4UR.js → integrations-globals.FlQVNhQx.js} +6 -6
  6. package/dist/chunks/{runtime-runBaseTests.S8ZSFig3.js → runtime-runBaseTests.0UwIvo_U.js} +9 -9
  7. package/dist/cli-wrapper.js +1 -1
  8. package/dist/cli.js +1314 -69
  9. package/dist/config.cjs +1 -1
  10. package/dist/config.d.ts +1 -1
  11. package/dist/coverage.d.ts +3 -3
  12. package/dist/environments.d.ts +1 -1
  13. package/dist/environments.js +1 -1
  14. package/dist/execute.d.ts +3 -3
  15. package/dist/execute.js +2 -2
  16. package/dist/index.d.ts +74 -78
  17. package/dist/index.js +7 -7
  18. package/dist/node.d.ts +3 -3
  19. package/dist/node.js +21 -21
  20. package/dist/{reporters-rzC174PQ.d.ts → reporters-QGe8gs4b.d.ts} +147 -56
  21. package/dist/reporters.d.ts +1 -1
  22. package/dist/reporters.js +20 -6
  23. package/dist/runners.d.ts +6 -6
  24. package/dist/runners.js +10 -10
  25. package/dist/{suite-MFRDkZcV.d.ts → suite-xGC-mxBC.d.ts} +1 -1
  26. package/dist/suite.d.ts +3 -3
  27. package/dist/suite.js +3 -3
  28. package/dist/vendor/{base.4sEqnqgY.js → base.RpormaJz.js} +2 -2
  29. package/dist/vendor/{base.QYERqzkH.js → base.knFzp7G3.js} +1 -1
  30. package/dist/vendor/{benchmark.IlKmJkUU.js → benchmark.eeqk2rd8.js} +1 -1
  31. package/dist/vendor/{node.p6h5JSuL.js → cli-api.RIYLcWhB.js} +1559 -3672
  32. package/dist/vendor/{constants.i1PoEnhr.js → constants.K-Wf1PUy.js} +3 -1
  33. package/dist/vendor/{execute.edwByI27.js → execute.aFSzc0Da.js} +26 -26
  34. package/dist/vendor/{index.cAUulNDf.js → index.8bPxjt7g.js} +6 -1
  35. package/dist/vendor/{index.kwCLJK4i.js → index.CKbXK54q.js} +7 -3
  36. package/dist/vendor/{environments.sU0TD7wX.js → index.GVFv9dZ0.js} +3 -0
  37. package/dist/vendor/index.QcWmThJv.js +4927 -0
  38. package/dist/vendor/{index.rJjbcrrp.js → index.ir9i0ywP.js} +1 -1
  39. package/dist/vendor/{index.vs_-lzuF.js → index.n-Ib4UWN.js} +4 -3
  40. package/dist/vendor/{rpc.w4v8oCkK.js → rpc.joBhAkyK.js} +10 -1
  41. package/dist/vendor/setup-common.NSpEdAQm.js +45 -0
  42. package/dist/vendor/{vi.Bw2UL9c9.js → vi.-Nr_x6dl.js} +8 -5
  43. package/dist/vendor/{vm.9N6CwTZh.js → vm.UmCkcXp-.js} +39 -12
  44. package/dist/worker.js +5 -10
  45. package/dist/workers/forks.js +3 -3
  46. package/dist/workers/runVmTests.js +13 -9
  47. package/dist/workers/threads.js +3 -3
  48. package/dist/workers/vmForks.js +4 -4
  49. package/dist/workers/vmThreads.js +4 -4
  50. package/dist/workers.d.ts +3 -3
  51. package/dist/workers.js +8 -8
  52. package/globals.d.ts +2 -0
  53. package/jsdom.d.ts +6 -0
  54. package/package.json +26 -22
  55. package/dist/vendor/reporters.cA9x-5v-.js +0 -2664
  56. package/dist/vendor/setup-common.4GIL70qB.js +0 -29
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "1.2.1",
4
+ "version": "1.3.0",
5
5
  "description": "Next generation testing framework powered by Vite",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -38,6 +38,9 @@
38
38
  "./globals": {
39
39
  "types": "./globals.d.ts"
40
40
  },
41
+ "./jsdom": {
42
+ "types": "./jsdom.d.ts"
43
+ },
41
44
  "./importMeta": {
42
45
  "types": "./importMeta.d.ts"
43
46
  },
@@ -110,34 +113,33 @@
110
113
  "peerDependencies": {
111
114
  "@edge-runtime/vm": "*",
112
115
  "@types/node": "^18.0.0 || >=20.0.0",
113
- "@vitest/browser": "^1.0.0",
114
- "@vitest/ui": "^1.0.0",
115
116
  "happy-dom": "*",
116
- "jsdom": "*"
117
+ "jsdom": "*",
118
+ "@vitest/browser": "1.3.0",
119
+ "@vitest/ui": "1.3.0"
117
120
  },
118
121
  "peerDependenciesMeta": {
119
- "@types/node": {
122
+ "@edge-runtime/vm": {
120
123
  "optional": true
121
124
  },
122
- "@vitest/ui": {
125
+ "@types/node": {
123
126
  "optional": true
124
127
  },
125
128
  "@vitest/browser": {
126
129
  "optional": true
127
130
  },
128
- "happy-dom": {
131
+ "@vitest/ui": {
129
132
  "optional": true
130
133
  },
131
- "jsdom": {
134
+ "happy-dom": {
132
135
  "optional": true
133
136
  },
134
- "@edge-runtime/vm": {
137
+ "jsdom": {
135
138
  "optional": true
136
139
  }
137
140
  },
138
141
  "dependencies": {
139
142
  "acorn-walk": "^8.3.2",
140
- "cac": "^6.7.14",
141
143
  "chai": "^4.3.10",
142
144
  "debug": "^4.3.4",
143
145
  "execa": "^8.0.1",
@@ -146,31 +148,33 @@
146
148
  "pathe": "^1.1.1",
147
149
  "picocolors": "^1.0.0",
148
150
  "std-env": "^3.5.0",
149
- "strip-literal": "^1.3.0",
151
+ "strip-literal": "^2.0.0",
150
152
  "tinybench": "^2.5.1",
151
- "tinypool": "^0.8.1",
153
+ "tinypool": "^0.8.2",
152
154
  "vite": "^5.0.0",
153
155
  "why-is-node-running": "^2.2.2",
154
- "@vitest/expect": "1.2.1",
155
- "@vitest/snapshot": "1.2.1",
156
- "@vitest/runner": "1.2.1",
157
- "@vitest/spy": "1.2.1",
158
- "vite-node": "1.2.1",
159
- "@vitest/utils": "1.2.1"
156
+ "@vitest/expect": "1.3.0",
157
+ "@vitest/runner": "1.3.0",
158
+ "@vitest/spy": "1.3.0",
159
+ "@vitest/snapshot": "1.3.0",
160
+ "vite-node": "1.3.0",
161
+ "@vitest/utils": "1.3.0"
160
162
  },
161
163
  "devDependencies": {
162
164
  "@ampproject/remapping": "^2.2.1",
163
165
  "@antfu/install-pkg": "^0.3.1",
164
- "@edge-runtime/vm": "^3.1.7",
166
+ "@edge-runtime/vm": "^3.1.8",
165
167
  "@sinonjs/fake-timers": "11.1.0",
166
168
  "@types/estree": "^1.0.5",
167
169
  "@types/istanbul-lib-coverage": "^2.0.6",
168
170
  "@types/istanbul-reports": "^3.0.4",
169
171
  "@types/jsdom": "^21.1.6",
170
172
  "@types/micromatch": "^4.0.6",
173
+ "@types/node": "^20.11.5",
171
174
  "@types/prompts": "^2.4.9",
172
175
  "@types/sinonjs__fake-timers": "^8.1.5",
173
- "birpc": "0.2.14",
176
+ "birpc": "0.2.15",
177
+ "cac": "^6.7.14",
174
178
  "chai-subset": "^1.6.0",
175
179
  "cli-truncate": "^4.0.0",
176
180
  "expect-type": "^0.17.3",
@@ -178,8 +182,8 @@
178
182
  "find-up": "^6.3.0",
179
183
  "flatted": "^3.2.9",
180
184
  "get-tsconfig": "^4.7.2",
181
- "happy-dom": "^12.10.3",
182
- "jsdom": "^23.0.1",
185
+ "happy-dom": "^13.3.8",
186
+ "jsdom": "^24.0.0",
183
187
  "log-update": "^5.0.1",
184
188
  "micromatch": "^4.0.5",
185
189
  "p-limit": "^5.0.0",