vitest 3.0.0-beta.4 → 3.0.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 (38) hide show
  1. package/dist/browser.d.ts +2 -2
  2. package/dist/chunks/{base.BJ8KO-VX.js → base.CUDzyU2J.js} +1 -1
  3. package/dist/chunks/{cac.BAYqQ2aM.js → cac.DZC9WjGM.js} +6 -6
  4. package/dist/chunks/{cli-api.Dhl34Trr.js → cli-api.CmJw5Cd_.js} +901 -65
  5. package/dist/chunks/{creator.Ot9GlSGw.js → creator.DztqrnyH.js} +1 -1
  6. package/dist/chunks/global.CnI8_G5V.d.ts +133 -0
  7. package/dist/chunks/{index.B2M9nD1V.js → index.CUcwvygK.js} +4 -4
  8. package/dist/chunks/{index.DQboAxJm.js → index.D9C26wCk.js} +1 -0
  9. package/dist/chunks/{index.CAueP3cK.js → index.TKSL1HjN.js} +188 -933
  10. package/dist/chunks/{reporters.Dcdq51WE.d.ts → reporters.Y8BYiXBN.d.ts} +340 -239
  11. package/dist/chunks/{resolveConfig.kZFMjKCQ.js → resolveConfig.CSLLD33d.js} +137 -52
  12. package/dist/chunks/{rpc.C3q9uwRX.js → rpc.TVf73xOu.js} +0 -1
  13. package/dist/chunks/{runBaseTests.URiUrnWK.js → runBaseTests.C0T_TQwH.js} +2 -2
  14. package/dist/chunks/{RandomSequencer.DB__To1b.js → typechecker.BJMkWMXo.js} +53 -106
  15. package/dist/chunks/{utils.yHKcm4dz.js → utils.DJWL04yX.js} +1 -1
  16. package/dist/chunks/{vite.DzluO1Kj.d.ts → vite.CQ0dHgkN.d.ts} +1 -1
  17. package/dist/chunks/{worker.BIVMnzXw.d.ts → worker.B1y96qmv.d.ts} +1 -1
  18. package/dist/chunks/{worker.Hz_LAzfd.d.ts → worker.CIpff8Eg.d.ts} +2 -4
  19. package/dist/cli.js +1 -1
  20. package/dist/config.d.ts +3 -3
  21. package/dist/coverage.d.ts +1 -1
  22. package/dist/coverage.js +5 -4
  23. package/dist/execute.d.ts +1 -1
  24. package/dist/index.d.ts +17 -118
  25. package/dist/node.d.ts +11 -8
  26. package/dist/node.js +25 -23
  27. package/dist/reporters.d.ts +1 -1
  28. package/dist/reporters.js +4 -6
  29. package/dist/runners.d.ts +1 -0
  30. package/dist/runners.js +7 -7
  31. package/dist/worker.js +1 -1
  32. package/dist/workers/forks.js +1 -1
  33. package/dist/workers/runVmTests.js +2 -2
  34. package/dist/workers/threads.js +1 -1
  35. package/dist/workers.d.ts +2 -2
  36. package/dist/workers.js +2 -2
  37. package/package.json +13 -13
  38. package/dist/chunks/types.BOjykUpq.d.ts +0 -27
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vitest",
3
3
  "type": "module",
4
- "version": "3.0.0-beta.4",
4
+ "version": "3.0.0",
5
5
  "description": "Next generation testing framework powered by Vite",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -122,8 +122,8 @@
122
122
  "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
123
123
  "happy-dom": "*",
124
124
  "jsdom": "*",
125
- "@vitest/ui": "3.0.0-beta.4",
126
- "@vitest/browser": "3.0.0-beta.4"
125
+ "@vitest/browser": "3.0.0",
126
+ "@vitest/ui": "3.0.0"
127
127
  },
128
128
  "peerDependenciesMeta": {
129
129
  "@edge-runtime/vm": {
@@ -155,21 +155,21 @@
155
155
  "tinybench": "^2.9.0",
156
156
  "tinyexec": "^0.3.2",
157
157
  "tinypool": "^1.0.2",
158
- "tinyrainbow": "^1.2.0",
158
+ "tinyrainbow": "^2.0.0",
159
159
  "vite": "^5.0.0 || ^6.0.0",
160
160
  "why-is-node-running": "^2.3.0",
161
- "@vitest/mocker": "3.0.0-beta.4",
162
- "@vitest/expect": "3.0.0-beta.4",
163
- "@vitest/runner": "3.0.0-beta.4",
164
- "@vitest/snapshot": "3.0.0-beta.4",
165
- "@vitest/pretty-format": "^3.0.0-beta.4",
166
- "@vitest/utils": "3.0.0-beta.4",
167
- "vite-node": "3.0.0-beta.4",
168
- "@vitest/spy": "3.0.0-beta.4"
161
+ "@vitest/mocker": "3.0.0",
162
+ "@vitest/pretty-format": "^3.0.0",
163
+ "@vitest/snapshot": "3.0.0",
164
+ "@vitest/spy": "3.0.0",
165
+ "@vitest/utils": "3.0.0",
166
+ "@vitest/runner": "3.0.0",
167
+ "vite-node": "3.0.0",
168
+ "@vitest/expect": "3.0.0"
169
169
  },
170
170
  "devDependencies": {
171
171
  "@ampproject/remapping": "^2.3.0",
172
- "@antfu/install-pkg": "^0.5.0",
172
+ "@antfu/install-pkg": "^1.0.0",
173
173
  "@edge-runtime/vm": "^5.0.0",
174
174
  "@sinonjs/fake-timers": "14.0.0",
175
175
  "@types/debug": "^4.1.12",
@@ -1,27 +0,0 @@
1
- type RawErrsMap = Map<string, TscErrorInfo[]>;
2
- interface TscErrorInfo {
3
- filePath: string;
4
- errCode: number;
5
- errMsg: string;
6
- line: number;
7
- column: number;
8
- }
9
- interface CollectLineNumbers {
10
- target: number;
11
- next: number;
12
- prev?: number;
13
- }
14
- type CollectLines = {
15
- [key in keyof CollectLineNumbers]: string;
16
- };
17
- interface RootAndTarget {
18
- root: string;
19
- targetAbsPath: string;
20
- }
21
- type Context = RootAndTarget & {
22
- rawErrsMap: RawErrsMap;
23
- openedDirs: Set<string>;
24
- lastActivePath?: string;
25
- };
26
-
27
- export type { CollectLineNumbers as C, RawErrsMap as R, TscErrorInfo as T, CollectLines as a, RootAndTarget as b, Context as c };