aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/vitest/package.json
blob: 6c63cc68798039e24dfe2b34009afa116e5a475e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
  "name": "vitest",
  "type": "module",
  "version": "4.0.18",
  "description": "Next generation testing framework powered by Vite",
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
  "license": "MIT",
  "funding": "https://opencollective.com/vitest",
  "homepage": "https://vitest.dev",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/vitest-dev/vitest.git",
    "directory": "packages/vitest"
  },
  "bugs": {
    "url": "https://github.com/vitest-dev/vitest/issues"
  },
  "keywords": [
    "vite",
    "vitest",
    "test",
    "jest"
  ],
  "sideEffects": false,
  "imports": {
    "#module-evaluator": {
      "types": "./dist/module-evaluator.d.ts",
      "default": "./dist/module-evaluator.js"
    }
  },
  "exports": {
    ".": {
      "import": {
        "types": "./dist/index.d.ts",
        "default": "./dist/index.js"
      },
      "require": {
        "types": "./index.d.cts",
        "default": "./index.cjs"
      }
    },
    "./browser": {
      "types": "./browser/context.d.ts",
      "default": "./browser/context.js"
    },
    "./package.json": "./package.json",
    "./optional-types.js": {
      "types": "./optional-types.d.ts"
    },
    "./src/*": "./src/*",
    "./globals": {
      "types": "./globals.d.ts"
    },
    "./jsdom": {
      "types": "./jsdom.d.ts"
    },
    "./importMeta": {
      "types": "./importMeta.d.ts"
    },
    "./import-meta": {
      "types": "./import-meta.d.ts"
    },
    "./node": {
      "types": "./dist/node.d.ts",
      "default": "./dist/node.js"
    },
    "./internal/browser": {
      "types": "./dist/browser.d.ts",
      "default": "./dist/browser.js"
    },
    "./internal/module-runner": {
      "types": "./dist/module-runner.d.ts",
      "default": "./dist/module-runner.js"
    },
    "./runners": {
      "types": "./dist/runners.d.ts",
      "default": "./dist/runners.js"
    },
    "./suite": {
      "types": "./dist/suite.d.ts",
      "default": "./dist/suite.js"
    },
    "./environments": {
      "types": "./dist/environments.d.ts",
      "default": "./dist/environments.js"
    },
    "./config": {
      "types": "./config.d.ts",
      "require": "./dist/config.cjs",
      "default": "./dist/config.js"
    },
    "./coverage": {
      "types": "./coverage.d.ts",
      "default": "./dist/coverage.js"
    },
    "./reporters": {
      "types": "./dist/reporters.d.ts",
      "default": "./dist/reporters.js"
    },
    "./snapshot": {
      "types": "./dist/snapshot.d.ts",
      "default": "./dist/snapshot.js"
    },
    "./mocker": {
      "types": "./dist/mocker.d.ts",
      "default": "./dist/mocker.js"
    },
    "./worker": {
      "types": "./worker.d.ts",
      "default": "./dist/worker.js"
    }
  },
  "main": "./dist/index.js",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "bin": {
    "vitest": "./vitest.mjs"
  },
  "files": [
    "*.cjs",
    "*.d.cts",
    "*.d.ts",
    "*.mjs",
    "bin",
    "browser",
    "dist"
  ],
  "engines": {
    "node": "^20.0.0 || ^22.0.0 || >=24.0.0"
  },
  "peerDependencies": {
    "@edge-runtime/vm": "*",
    "@opentelemetry/api": "^1.9.0",
    "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
    "happy-dom": "*",
    "jsdom": "*",
    "@vitest/browser-playwright": "4.0.18",
    "@vitest/browser-preview": "4.0.18",
    "@vitest/browser-webdriverio": "4.0.18",
    "@vitest/ui": "4.0.18"
  },
  "peerDependenciesMeta": {
    "@edge-runtime/vm": {
      "optional": true
    },
    "@opentelemetry/api": {
      "optional": true
    },
    "@types/node": {
      "optional": true
    },
    "@vitest/browser-playwright": {
      "optional": true
    },
    "@vitest/browser-preview": {
      "optional": true
    },
    "@vitest/browser-webdriverio": {
      "optional": true
    },
    "@vitest/ui": {
      "optional": true
    },
    "happy-dom": {
      "optional": true
    },
    "jsdom": {
      "optional": true
    }
  },
  "dependencies": {
    "es-module-lexer": "^1.7.0",
    "expect-type": "^1.2.2",
    "magic-string": "^0.30.21",
    "obug": "^2.1.1",
    "pathe": "^2.0.3",
    "picomatch": "^4.0.3",
    "std-env": "^3.10.0",
    "tinybench": "^2.9.0",
    "tinyexec": "^1.0.2",
    "tinyglobby": "^0.2.15",
    "tinyrainbow": "^3.0.3",
    "vite": "^6.0.0 || ^7.0.0",
    "why-is-node-running": "^2.3.0",
    "@vitest/mocker": "4.0.18",
    "@vitest/expect": "4.0.18",
    "@vitest/runner": "4.0.18",
    "@vitest/pretty-format": "4.0.18",
    "@vitest/snapshot": "4.0.18",
    "@vitest/spy": "4.0.18",
    "@vitest/utils": "4.0.18"
  },
  "devDependencies": {
    "@antfu/install-pkg": "^1.1.0",
    "@edge-runtime/vm": "^5.0.0",
    "@jridgewell/trace-mapping": "0.3.31",
    "@opentelemetry/api": "^1.9.0",
    "@sinonjs/fake-timers": "14.0.0",
    "@types/estree": "^1.0.8",
    "@types/istanbul-lib-coverage": "^2.0.6",
    "@types/istanbul-reports": "^3.0.4",
    "@types/jsdom": "^27.0.0",
    "@types/node": "^24.10.1",
    "@types/picomatch": "^4.0.2",
    "@types/prompts": "^2.4.9",
    "@types/sinonjs__fake-timers": "^8.1.5",
    "acorn-walk": "^8.3.4",
    "birpc": "^4.0.0",
    "cac": "^6.7.14",
    "empathic": "^2.0.0",
    "flatted": "^3.3.3",
    "happy-dom": "^20.0.11",
    "jsdom": "^27.2.0",
    "local-pkg": "^1.1.2",
    "mime": "^4.1.0",
    "prompts": "^2.4.2",
    "strip-literal": "^3.1.0",
    "ws": "^8.18.3"
  },
  "scripts": {
    "build": "premove dist && rollup -c",
    "dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" rollup -c --watch -m inline"
  }
}