218 lines
5.3 KiB
JSON
218 lines
5.3 KiB
JSON
{
|
|
"name": "vitest",
|
|
"type": "module",
|
|
"version": "5.0.0",
|
|
"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": {
|
|
"__vitest_source__": "./src/runtime/moduleRunner/moduleEvaluator.ts",
|
|
"types": "./dist/module-evaluator.d.ts",
|
|
"default": "./dist/module-evaluator.js"
|
|
},
|
|
"#nodejs-worker-loader": "./dist/nodejs-worker-loader.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"
|
|
},
|
|
"./optional-runtime-types.js": {
|
|
"types": "./optional-runtime-types.d.ts"
|
|
},
|
|
"./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": {
|
|
"__vitest_source__": "./src/public/browser.ts",
|
|
"types": "./dist/browser.d.ts",
|
|
"default": "./dist/browser.js"
|
|
},
|
|
"./internal/traces": {
|
|
"__vitest_source__": "./src/utils/traces.ts",
|
|
"default": "./dist/traces.js"
|
|
},
|
|
"./config": {
|
|
"types": "./config.d.ts",
|
|
"require": "./dist/config.cjs",
|
|
"default": "./dist/config.js"
|
|
},
|
|
"./runtime": {
|
|
"types": "./dist/runtime.d.ts",
|
|
"default": "./dist/runtime.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": "^22.12.0 || ^24.0.0 || >=26.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@edge-runtime/vm": "*",
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"@types/node": "^22.0.0 || >=24.0.0",
|
|
"@vitest/browser-playwright": "5.0.0",
|
|
"@vitest/browser-preview": "5.0.0",
|
|
"@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0",
|
|
"@vitest/coverage-istanbul": "5.0.0",
|
|
"@vitest/coverage-v8": "5.0.0",
|
|
"@vitest/ui": "5.0.0",
|
|
"happy-dom": "*",
|
|
"jsdom": "*",
|
|
"vite": "^6.4.0 || ^7.0.0 || ^8.0.0"
|
|
},
|
|
"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/coverage-istanbul": {
|
|
"optional": true
|
|
},
|
|
"@vitest/coverage-v8": {
|
|
"optional": true
|
|
},
|
|
"@vitest/ui": {
|
|
"optional": true
|
|
},
|
|
"happy-dom": {
|
|
"optional": true
|
|
},
|
|
"jsdom": {
|
|
"optional": true
|
|
},
|
|
"vite": {
|
|
"optional": false
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@types/chai": "^5.2.2",
|
|
"@vitest/mocker": "5.0.0",
|
|
"chai": "^6.2.2",
|
|
"es-module-lexer": "^2.3.2",
|
|
"expect-type": "^1.4.0",
|
|
"magic-string": "^1.2.3",
|
|
"obug": "^2.1.4",
|
|
"picomatch": "^4.0.7",
|
|
"std-env": "^4.2.0",
|
|
"tinybench": "6.1.4",
|
|
"tinyexec": "1.3.0",
|
|
"tinyglobby": "^0.2.17",
|
|
"why-is-node-running": "^2.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@antfu/install-pkg": "^2.0.1",
|
|
"@bomb.sh/tab": "^0.0.22",
|
|
"@edge-runtime/vm": "^5.0.0",
|
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
"@opentelemetry/api": "^1.9.1",
|
|
"@sinonjs/fake-timers": "15.4.0",
|
|
"@types/jsdom": "^28.0.3",
|
|
"@types/node": "^24.13.3",
|
|
"@types/picomatch": "^4.0.3",
|
|
"@types/prompts": "^2.4.9",
|
|
"@vitest/expect": "5.0.0",
|
|
"@vitest/istanbul-lib-coverage": "^1.0.0",
|
|
"@vitest/istanbul-lib-report": "^1.0.0",
|
|
"@vitest/pretty-format": "5.0.0",
|
|
"@vitest/snapshot": "5.0.0",
|
|
"@vitest/spy": "5.0.0",
|
|
"@vitest/utils": "5.0.0",
|
|
"acorn": "8.11.3",
|
|
"acorn-walk": "^8.3.5",
|
|
"birpc": "^4.2.0",
|
|
"cac": "^6.7.14",
|
|
"flatted": "^3.4.4",
|
|
"happy-dom": "^20.12.0",
|
|
"jsdom": "^29.1.1",
|
|
"local-pkg": "^1.2.1",
|
|
"mime": "^4.1.0",
|
|
"pathe": "^2.0.3",
|
|
"prompts": "^2.4.2",
|
|
"strip-literal": "^3.1.0",
|
|
"tinyhighlight": "^0.3.2",
|
|
"tinyrainbow": "^3.1.1",
|
|
"vite": "^6.4.0 || ^7.0.0 || ^8.0.0",
|
|
"ws": "^8.21.3"
|
|
},
|
|
"scripts": {
|
|
"build": "premove dist && rollup -c",
|
|
"dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" rollup -c --watch -m inline"
|
|
}
|
|
} |